From def1992ae3fce74940e869017821eabee5273631 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 17 Apr 2001 01:40:48 +0000 Subject: [PATCH] when UTC=0 run hwclock with --localtime (if not, hwclock will default to the last used value which may be UTC instead of the desired localtime) git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@529 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/setclock.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml index 994626de6..b68fc317f 100644 --- a/chapter07/setclock.xml +++ b/chapter07/setclock.xml @@ -48,7 +48,10 @@ CLOCKPARAMS="--hctosys" case "$UTC" in yes|true|1) - CLOCKPARAMS="$CLOCKPARAMS -u" + CLOCKPARAMS="$CLOCKPARAMS --utc" + ;; + no|false|0) + CLOCKPARAMS="$CLOCKPARAMS --localtime" ;; esac