summaryrefslogtreecommitdiff
path: root/debian/util-linux.postinst
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2007-09-21 14:01:04 -0600
committerLaMont Jones <lamont@debian.org>2007-09-21 14:01:04 -0600
commit848a66d6b8a4fc51b218e80e1c71fe06e85f56ee (patch)
tree9511bfb125a906537415c0811d94ac489944809d /debian/util-linux.postinst
parent470d183067dac8bb7682bc90a89c5676c0d8aa21 (diff)
downloadutil-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.postinst3
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