summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/0120-remove-adjtime-configuration.chroot20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/hooks/0120-remove-adjtime-configuration.chroot b/share/hooks/0120-remove-adjtime-configuration.chroot
new file mode 100755
index 000000000..5625effb8
--- /dev/null
+++ b/share/hooks/0120-remove-adjtime-configuration.chroot
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+# Reset generated file
+
+if [ -e /run ]
+then
+ # wheezy
+
+cat > /etc/adjtime << EOF
+0.0 0 0.0
+0
+UTC
+EOF
+
+else
+ # squeeze
+ echo "0.0 0 0.0" > /etc/adjtime
+fi