diff options
author | Scott James Remnant <scott@ubuntu.com> | 2009-07-14 17:39:56 +0100 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2009-07-14 17:39:56 +0100 |
commit | bb34cffdd4033f7226da6487f5db5c6c71b96b40 (patch) | |
tree | 018e6a89ef4f1e374d1145aff0b65dd0a61c86ee /debian | |
parent | 4bde2211c13ffe11e0ac96be3ef9676f9fd22fa5 (diff) | |
download | util-linux-old-bb34cffdd4033f7226da6487f5db5c6c71b96b40.tar.gz |
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!
Diffstat (limited to 'debian')
-rw-r--r-- | debian/hwclock.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |