projects
/
grml-autoconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* config_time: make sure /etc/default/locale can be accessed
[grml-autoconfig.git]
/
autoconfig.functions
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
5c8e087
..
1ea5608
100755
(executable)
--- 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
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
ERROR=$(TZ="$TZ" hwclock $UTC -s 2>&1) ; RC=$?
if [ -n "$ERROR" ] ; then
eindent