X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=1ea56081edb5d5d3863f23acf09371af366b69e4;hp=5c8e08772a0a919b94945a6242f6ca4427d1658b;hb=9bb58dc271a33919c9a7513335dcaa373da489a5;hpb=9eeb806d12012b16f75ccdf78f680b8ca9e5f569 diff --git a/autoconfig.functions b/autoconfig.functions index 5c8e087..1ea5608 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -335,7 +335,11 @@ config_time(){ checkbootparam utc >>$DEBUG 2>&1 && UTC="-u" checkbootparam gmt >>$DEBUG 2>&1 && UTC="-u" # hwclock uses the TZ variable - . /etc/default/locale + if [ -r /etc/default/locale ] ; then + . /etc/default/locale + else + TZ=Europe/Vienna + fi ERROR=$(TZ="$TZ" hwclock $UTC -s 2>&1) ; RC=$? if [ -n "$ERROR" ] ; then eindent