From 9673449ac0af77751eab62423114f27e7dbc497c Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Wed, 23 Jan 2008 17:46:03 -0600 Subject: Use --directisa configuration in rc.shutdown as well Signed-off-by: Roman Kyrylych Signed-off-by: Aaron Griffin --- rc.shutdown | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3