From: Scott James Remnant Date: Tue, 14 Jul 2009 16:39:56 +0000 (+0100) Subject: hwclock: make start a no-op when udev is running X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb34cffdd4033f7226da6487f5db5c6c71b96b40;p=util-linux hwclock: make start a no-op when udev is running Since we set the system clock from a udev rule, we don't need to do it from an init script and we certainly don't need to do it twice! --- diff --git a/debian/hwclock.sh b/debian/hwclock.sh index 4ceb95e8..80b17bc4 100644 --- a/debian/hwclock.sh +++ b/debian/hwclock.sh @@ -67,6 +67,10 @@ hwclocksh() case "$1" in start) + if [ -d /dev/.udev ]; then + return 0 + fi + if [ -w /etc ] && [ ! -f /etc/adjtime ] && [ ! -e /etc/adjtime ]; then echo "0.0 0 0.0" > /etc/adjtime fi