diff --git a/lib/shared/zz-uenv_txt b/lib/shared/zz-uenv_txt index 1a95e13..bc2ea1e 100644 --- a/lib/shared/zz-uenv_txt +++ b/lib/shared/zz-uenv_txt @@ -15,7 +15,8 @@ if [ -f /boot/uEnv.txt ] ; then if [ ! "x${older_kernel}" = "x" ] ; then if [ ! "x${older_kernel}" = "x${version}" ] ; then 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 else echo "uname_r=${version}" >> /boot/uEnv.txt