X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F18-timesetup;h=21b508488d2208b01de2953ff95ec37b1ea28d99;hp=e3d27a649f43568124171254f8696e134e11a4d0;hb=f3b335ea5c94d5cf24ec6b9184106b298849f311;hpb=e0aadc7e5a3bb5ef50333ffd5586ae7c3abc978e diff --git a/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup b/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup index e3d27a6..21b5084 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/18-timesetup @@ -1,5 +1,5 @@ -#!/bin/sh -# Filename: /etc/grml/fai/config/scripts/GRMLBASE/18-timesetup +#!/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/ @@ -10,6 +10,7 @@ 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 @@ -30,4 +31,4 @@ if [ -n "$TIMEZONE" ] ; then fi ## END OF FILE ################################################################ -# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3 +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2