-# by default it's set to UTC=yes, we usually want UTC=no
-if [ -n "$UTC" ] ; then
- echo "Setting hwclock parameter UTC to $UTC"
- sed -i "s|^UTC=.*$|UTC="$UTC"|" $target/etc/default/rcS
+# by default it's set to UTC=no
+if [ -n "$UTC" ] && [ "$UTC" = "yes" ] ; then
+ echo "UTC is set to 'yes', setting hwclock parameter UTC"
+ [ -e "${target}/etc/adjtime" ] && sed -i "s/^LOCAL/UTC/" "${target}/etc/adjtime"