diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-03-28 19:06:05 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-03-30 16:32:53 +0200 |
commit | 29a29c75e68bedd0b47d70de1e8eac83ffe23a13 (patch) | |
tree | 68685be6eed74ae2f7e320cc548431f04d3ee2a2 /adjtime.cron | |
parent | e9b658239f45d858ff7b30b46441b8733d20f151 (diff) | |
download | initscripts-29a29c75e68bedd0b47d70de1e8eac83ffe23a13.tar.xz |
Make hwclock --adjust as well as --systohc optional (FS#13684)
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'adjtime.cron')
-rwxr-xr-x | adjtime.cron | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adjtime.cron b/adjtime.cron index a876506..dac8cea 100755 --- a/adjtime.cron +++ b/adjtime.cron @@ -10,6 +10,6 @@ case $HARDWARECLOCK in *) HWCLOCK_PARAMS="";; esac -if [[ $HWCLOCK_PARAMS ]]; then +if [[ $HWCLOCK_PARAMS && -f /var/run/daemons/hwclock ]]; then /sbin/hwclock $HWCLOCK_PARAMS fi |