summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.shutdown8
1 files changed, 6 insertions, 2 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 1143c16..d366423 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -73,13 +73,17 @@ fi
HWCLOCK_PARAMS="--systohc"
if [ "$HARDWARECLOCK" = "UTC" ]; then
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
-else
+elif
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
+else
+ HWCLOCK_PARAMS=""
fi
if [ "$USEDIRECTISA" = "yes" -o "$USEDIRECTISA" = "YES" ]; then
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --directisa"
fi
-/sbin/hwclock $HWCLOCK_PARAMS
+if [ "$HWCLOCK_PARAMS" != "" ]; then
+ /sbin/hwclock $HWCLOCK_PARAMS
+fi
stat_done
# removing psmouse module to fix some reboot issues on newer laptops