summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-11-03 16:43:36 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-11-03 16:43:36 +0100
commit3cb81442d6bd49de58dd6f31d5f7c4d74081d361 (patch)
treed33b837c59831bb5454e99d87a18301cabd15189
parent92379ba136d863158d06b2ebb31b822779adffec (diff)
trying stdout from ask_option.. this should work..
-rw-r--r--src/core/procedures/interactive8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive
index 52a6dbf..6e7d203 100644
--- a/src/core/procedures/interactive
+++ b/src/core/procedures/interactive
@@ -64,7 +64,7 @@ mainmenu()
{
default=no
[ -n "$NEXTITEM" ] && default="$NEXTITEM"
- ask_option $default "MAIN MENU" \
+ answer=`ask_option $default "MAIN MENU" \
"0" "Select Source" \
"1" "Set Clock" \
"2" "Prepare Hard Drive" \
@@ -72,9 +72,9 @@ mainmenu()
"4" "Install Packages" \
"5" "Configure System" \
"6" "Install Bootloader" \
- "7" "Exit Install"
- NEXTITEM="$(cat $ANSWER)"
- case $(cat $ANSWER) in
+ "7" "Exit Install"`
+ NEXTITEM="$answer"
+ case $answer in
"0")
execute worker select_source; ret=$?
if [ $ret -eq 0 -a "$var_PKG_SOURCE_TYPE" = "ftp" ]; then