From 414b89ed3fed62396f2e9ec242f7aeb9863ac1f3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 13 Dec 2012 20:32:05 +0100 Subject: Updating removal of adjtime in a split out hook for wheezy. --- share/hooks/0120-remove-adjtime-configuration.chroot | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 share/hooks/0120-remove-adjtime-configuration.chroot (limited to 'share/hooks/0120-remove-adjtime-configuration.chroot') 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 -- cgit v1.2.3