|
|
@ -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
|
|
|
|