diff options
author | LaMont Jones <lamont@debian.org> | 2007-09-21 14:01:04 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-09-21 14:01:04 -0600 |
commit | 848a66d6b8a4fc51b218e80e1c71fe06e85f56ee (patch) | |
tree | 9511bfb125a906537415c0811d94ac489944809d /debian/util-linux.postinst | |
parent | 470d183067dac8bb7682bc90a89c5676c0d8aa21 (diff) | |
download | util-linux-old-848a66d6b8a4fc51b218e80e1c71fe06e85f56ee.tar.gz |
hwclock: Reintroduce hwclockfirst.sh on Debian machines. Closes: #443487
If /etc/localtime is a readable file, then set the time in hwclockfirst.sh
before mounting the root partition. Many thanks to Ted T'so for the details
(found in the bug report.)
Diffstat (limited to 'debian/util-linux.postinst')
-rw-r--r-- | debian/util-linux.postinst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/util-linux.postinst b/debian/util-linux.postinst index 7886e9ae..c12421e3 100644 --- a/debian/util-linux.postinst +++ b/debian/util-linux.postinst @@ -28,6 +28,9 @@ if [ "$(uname -s)" = "Linux" ]; then update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null update-rc.d hwclock.sh start 11 S . stop 25 0 6 . > /dev/null update-rc.d -f hwclockfirst.sh remove 2>/dev/null > /dev/null + if [ -f /etc/init.d/hwclockfirst.sh ]; then + update-rc.d hwclockfirst.sh start 8 S . > /dev/null + fi fi fi |