before reading it (relevant basically only for booting via PXE).
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
+grml-autoconfig (0.6-8) unstable; urgency=low
+
+ * config_time: make sure /etc/default/locale can be accessed
+ before reading it (relevant basically only for booting via PXE).
+
+ -- Michael Prokop <mika@grml.org> Sun, 3 Dec 2006 22:56:58 +0100
+
grml-autoconfig (0.6-7) unstable; urgency=low
* config_time: use option --directisa for hwclock if running hwclock