zz-uenv_txt: tested on wheezy, jessie, trusty, utopic

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 10 years ago
parent 5c70a16b00
commit 4d1c86fd14

@ -15,7 +15,8 @@ if [ -f /boot/uEnv.txt ] ; then
if [ ! "x${older_kernel}" = "x" ] ; then if [ ! "x${older_kernel}" = "x" ] ; then
if [ ! "x${older_kernel}" = "x${version}" ] ; then if [ ! "x${older_kernel}" = "x${version}" ] ; then
echo "zz-uenv_txt: Updating /boot/uEnv.txt [uname_r=${version}]" echo "zz-uenv_txt: Updating /boot/uEnv.txt [uname_r=${version}]"
sed -i -e 's:uname_r='${older_kernel}':uname_r='${version}':g' /boot/uEnv.txt #tested on: wheezy, jessie, trusty, utopic with default sed
sed -i -e "s:uname_r=$older_kernel:uname_r=$version:g" /boot/uEnv.txt
fi fi
else else
echo "uname_r=${version}" >> /boot/uEnv.txt echo "uname_r=${version}" >> /boot/uEnv.txt

Loading…
Cancel
Save