diff options
author | Dan McGee <dan@archlinux.org> | 2009-08-15 23:55:25 -0500 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2009-08-22 11:25:27 +0200 |
commit | 2008846efe204b79d1c0f281d609a1f4b23431c8 (patch) | |
tree | 4b9404966d4593af87e609d9ad5b66129a16c9e5 /rc.shutdown | |
parent | d1f86dbf7819a782df812dde8282a03ab1f82faf (diff) |
Allow skipping of all hardware clock adjustments
For virtualized machines, the hardware clock doesn't actually exist, so all
hwclock calls fail and print error messages during system startup, shutdown,
and the hourly adjtime cronjob. By explicitly looking for HARDWARECLOCK to
be set to 'UTC' or 'localtime', all other values will result in hwclock
calls being skipped (e.g. set the variable to 'none').
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.shutdown b/rc.shutdown index b0d8195..e2a4a84 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -80,7 +80,7 @@ elif [ "$HARDWARECLOCK" = "localtime" ]; then else HWCLOCK_PARAMS="" fi -if [ "$HWCLOCK_PARAMS" != "" ]; then +if [ -n "$HWCLOCK_PARAMS" ]; then /sbin/hwclock $HWCLOCK_PARAMS fi stat_done |