X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=4cb5a651a6ca881c592bbec28e30418cceb948ba;hp=317323c9c4f711051751d17cb660c1171223b03a;hb=2b4e769f8616ad88642735f79c188eac464a3b99;hpb=f2e718518cd811284a9b14a67fe3978deaa5a378 diff --git a/autoconfig.functions b/autoconfig.functions index 317323c..4cb5a65 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mit Jul 25 18:59:49 CEST 2007 [mika] +# Latest change: Don Aug 02 11:01:10 CEST 2007 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -444,11 +444,13 @@ update_progress(){ config_timezone(){ # don't touch the files if running from harddisk: if [ -z "$INSTALLED" ]; then - einfo "Setting timezone." - KTZ="$(getbootparam tz 2>>$DEBUG)" - [ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ" - rm -f /etc/localtime - cp "/usr/share/zoneinfo/$TZ" /etc/localtime && eend 0 + KTZ="$(getbootparam tz 2>>$DEBUG)" + if [ -n "$KTZ" ] ; then + einfo "Setting timezone." + [ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ" + rm -f /etc/localtime + cp "/usr/share/zoneinfo/$TZ" /etc/localtime ; eend $? + fi fi } # }}}