]> err.no Git - util-linux/commitdiff
hwclock: make start a no-op when udev is running
authorScott James Remnant <scott@ubuntu.com>
Tue, 14 Jul 2009 16:39:56 +0000 (17:39 +0100)
committerScott James Remnant <scott@ubuntu.com>
Tue, 14 Jul 2009 16:39:56 +0000 (17:39 +0100)
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

index 4ceb95e885c96ba2fc39723ff1d6239b36aa0265..80b17bc44ba6a74edc2c7691aa43478b390af9b1 100644 (file)
@@ -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