aboutsummaryrefslogtreecommitdiff
path: root/arch/split-hwclock-calls.diff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2012-11-25 20:36:59 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2012-11-25 20:36:59 (GMT)
commit60f6a250016004320c2ccfccbe6ef7f500ed2d2d (patch)
tree97c3325fcf53dfebb19b87dde5825cbea4e161b1 /arch/split-hwclock-calls.diff
parent85f147c163d3844901c6cd659f0066e7741811a5 (diff)
downloadinitscripts-60f6a250016004320c2ccfccbe6ef7f500ed2d2d.tar.xz
aic: import packaging rules and the license
Diffstat (limited to 'arch/split-hwclock-calls.diff')
-rw-r--r--arch/split-hwclock-calls.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/split-hwclock-calls.diff b/arch/split-hwclock-calls.diff
new file mode 100644
index 0000000..c0a6a4f
--- /dev/null
+++ b/arch/split-hwclock-calls.diff
@@ -0,0 +1,21 @@
+diff --git a/rc.sysinit b/rc.sysinit
+index eb49e2b..8f9727b 100755
+--- a/rc.sysinit
++++ b/rc.sysinit
+@@ -34,7 +34,6 @@ bootlogd -p /run/bootlogd.pid
+
+ run_hook sysinit_start
+
+-HWCLOCK_PARAMS="--systz"
+ case $HARDWARECLOCK in
+ "") ;;
+ UTC) HWCLOCK_PARAMS+=" --utc --noadjfile";;
+@@ -54,7 +53,7 @@ if [[ $HWCLOCK_PARAMS ]]; then
+
+ [[ $TIMEZONE ]] && export TZ=$TIMEZONE
+
+- hwclock $HWCLOCK_PARAMS && stat_done || stat_fail
++ { hwclock $HWCLOCK_PARAMS && hwclock --systz; } && stat_done || stat_fail
+
+ unset TZ
+ fi