diff options
Diffstat (limited to 'share/hooks')
-rwxr-xr-x | share/hooks/0120-remove-adjtime-configuration.chroot | 20 |
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 |