From bb34cffdd4033f7226da6487f5db5c6c71b96b40 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Tue, 14 Jul 2009 17:39:56 +0100 Subject: [PATCH] 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! --- debian/hwclock.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5