diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-03-30 21:13:40 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-03-30 21:13:40 +0200 |
commit | f3d44bb5f33bf927ef62bb0e6223e8312b9c4358 (patch) | |
tree | 8bcffb3efd04978688ea208304b4bc26889c71af /src/core/libs/lib-ui-interactive.sh | |
parent | a6052f5c0739b5acdba0e736b7e320f339df126d (diff) |
do hwclock (only) at the right time, optimize hwclock code, make UTC default (fixes FS#13752 - Make hwclock in UTC a "good idea"
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index cb80c11..129b2cd 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -77,17 +77,16 @@ interactive_timezone () { TIMEZONE=$ANSWER_TIMEZONE infofy "Setting Timezone to $TIMEZONE" [ -e /etc/localtime ] && rm -f /etc/localtime #why do we do this?? tpowa? - dohwclock } interactive_time () { # utc or localtime? - ask_option no "Clock configuration" "Is your hardware clock in UTC or local time?" required "UTC" " " "localtime" " " || return 1 + ask_option UTC "Clock configuration" "Is your hardware clock in UTC or local time? UTC is recommended" required "UTC" " " "localtime" " " || return 1 HARDWARECLOCK=$ANSWER_OPTION - dohwclock + dohwclock $HARDWARECLOCK if which ntpdate >/dev/null && ask_yesno "'ntpdate' was detected on your system.\n\nDo you want to use 'ntpdate' for syncing your clock,\nby using the internet clock pool?\n(You need a working internet connection for doing this!)" yes #TODO: only propose if network ok. then |