X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F18-timesetup;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F18-timesetup;h=0000000000000000000000000000000000000000;hb=019fbefe5b29bb4e95808163f0cd645640cad30c;hp=21b508488d2208b01de2953ff95ec37b1ea28d99;hpb=9a1ee76bc3fa423968d666e36422000e4ee979d6;p=grml-live-grml.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup b/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup deleted file mode 100755 index 21b5084..0000000 --- a/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/18-timesetup -# Purpose: apply default time and timezone settings -# Authors: (c) Thomas Lehmann -# Bug-Reports: send to author and see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2 or any later version. -############################################################################### - -set -u -set -e - -# tell if hwclock is running in UTC or local time -# by default it's set to UTC=yes, we usually want UTC=no -if [ -n "$UTC" ] ; then - echo "Setting hwclock parameter UTC to $UTC" - sed -i "s|^UTC=.*$|UTC="$UTC"|" $target/etc/default/rcS -fi - -# default timezone settings -if [ -n "$TIMEZONE" ] ; then - echo "Setting default timezone to $TIMEZONE" - # update debconf - area=$(echo $TIMEZONE | cut -d '/' -f1) - zone=$(echo $TIMEZONE | cut -d '/' -f2) - echo "tzdata tzdata/Areas select $area" | $ROOTCMD debconf-set-selections - echo "tzdata tzdata/Zones/$area select $zone" | $ROOTCMD debconf-set-selections - # update files - echo $TIMEZONE > $target/etc/timezone - rm -f $target/etc/localtime - cp -f $target/usr/share/zoneinfo/$TIMEZONE $target/etc/localtime -fi - -## END OF FILE ################################################################ -# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2