aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-01-23 17:46:03 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2008-01-23 17:46:03 -0600
commit9673449ac0af77751eab62423114f27e7dbc497c (patch)
tree1dc9762d7e2f994c24110291cb94c66ec89dcb29
parentf589387f0b9ef56de8ab30f50a3c562e010baeeb (diff)
downloadinitscripts-9673449ac0af77751eab62423114f27e7dbc497c.tar.xz
Use --directisa configuration in rc.shutdown as well
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xrc.shutdown10
1 files changed, 9 insertions, 1 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 19cb00f..db8c862 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -59,11 +59,19 @@ if [ "$TIMEZONE" != "" -a -e /usr/share/zoneinfo/$TIMEZONE ]; then
/bin/rm -f /etc/localtime
/bin/cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime
fi
+
+HWCLOCK_PARAMS="--systohc"
if [ "$HARDWARECLOCK" = "UTC" ]; then
/sbin/hwclock --directisa --utc --systohc
+ HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
else
/sbin/hwclock --directisa --localtime --systohc
+ HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
+fi
+if [ "$USEDIRECTISA" != "no" ]; then
+ HWCLOCK_PARAMS="$HWCLOCK_PARAMS --directisa"
fi
+/sbin/hwclock $HWCLOCK_PARAMS
stat_done
# removing psmouse module to fix some reboot issues on newer laptops
@@ -127,4 +135,4 @@ else
fi
# End of file
-# vim: set ts=2 noet:
+# vim: set ts=2 sw=2 noet: