From 3a282def059b0ef71bbf5bda9797f2b3462d541d Mon Sep 17 00:00:00 2001 From: Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> Date: Mon, 28 Mar 2011 16:37:59 +0200 Subject: [PATCH 2/2] Fix hwclock daemon code --- adjtime.cron | 2 +- hwclock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adjtime.cron b/adjtime.cron index 7691aa5..dac8cea 100755 --- a/adjtime.cron +++ b/adjtime.cron @@ -10,6 +10,6 @@ case $HARDWARECLOCK in *) HWCLOCK_PARAMS="";; esac -if [[ $HWCLOCK_PARAMS && -f /var/daemons/hwclock ]]; then +if [[ $HWCLOCK_PARAMS && -f /var/run/daemons/hwclock ]]; then /sbin/hwclock $HWCLOCK_PARAMS fi diff --git a/hwclock b/hwclock index d584276..d9de9e1 100644 --- a/hwclock +++ b/hwclock @@ -18,7 +18,7 @@ case "$1" in /sbin/hwclock --hctosys $HWCLOCK_PARAMS || stat_die stat_done # Note: This also enables /etc/cron.hourly/adjtime - add_daemon clock + add_daemon hwclock fi ;; stop) @@ -27,7 +27,7 @@ case "$1" in /sbin/hwclock --systohc $HWCLOCK_PARAMS || stat_die stat_done fi - rm_daemon clock + rm_daemon hwclock ;; restart) $0 stop -- 1.7.0.3