summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-03-31 21:51:27 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-03-31 21:51:27 +0200
commit3a526624887050e3107988daca6c39a854a62000 (patch)
treecab3e974ae575868331d4f93c468c3e92f031ab3 /src/core
parent84424e82e5407315d2cedfe33c45629ffd8b56d8 (diff)
dont show which output + syntax fix
Diffstat (limited to 'src/core')
-rw-r--r--src/core/libs/lib-ui-interactive.sh5
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 9884cb5..5a8a076 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -93,11 +93,10 @@ interactive_time () {
[ -n "$NEXTITEM" ] && default="$NEXTITEM"
EXTRA=
#TODO: only propose if network ok
- which ntpdate >/dev/null && EXTRA="'ntp' 'Set time and date using ntp'"
+ which ntpdate &>/dev/null && EXTRA="'ntp' 'Set time and date using ntp'"
ask_option $default "Date/time configuration" "According to your settings and your hardwareclock, the date should now be $current. If this is incorrect, you can correct this now" required \
- $EXTRA "manual" "Set time and date manually" \
- "return" "Looks good. back to main menu"
+ $EXTRA "manual" "Set time and date manually" "return" "Looks good. back to main menu"
if [ "$ANSWER_OPTION" = ntp ]
then
if ntpdate pool.ntp.org >/dev/null