[PATCH] UTC setting in live-config 3.0.13
Since UTC/LOCAL parameter has been migrated from /etc/default/rcS to /etc/adjtime, attached please find the patch about
0070-tzdata.
My 2 cents.
Steven.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0 8796 11C1 12DA 47CF 935C
--- 0070-tzdata.orig 2012-12-02 16:45:29.000000000 +0800
+++ 0070-tzdata.new 2012-12-02 16:48:37.000000000 +0800
@@ -56,7 +56,15 @@
if [ -n "${LIVE_UTC}" ]
then
- sed -i -e "s|UTC=.*|UTC=${LIVE_UTC}|" /etc/default/rcS
+ case "$LIVE_UTC" in
+ yes)
+ sed -i -e "s|LOCAL|UTC|" /etc/adjtime
+ ;;
+ no)
+ sed -i -e "s|UTC|LOCAL|" /etc/adjtime
+ ;;
+ esac
+
fi
# Creating state file
Reply to: