Browse Source

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

Gerard Beekmans 24 năm trước cách đây
mục cha
commit
def1992ae3
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      chapter07/setclock.xml

+ 4 - 1
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