Displaying 1 result from an estimated 1 matches for "has_continue_opt".
2009 Jul 15
1
[PATCH node] Changes the exit/continue based on context.
...ess Boot"
declare -a OPTIONS
@@ -32,13 +31,32 @@ for cfg in $CONFIG_DIR/*; do
fi
done
OPTIONS[${#OPTIONS[*]}]="$DEBUG_SHELL"
-OPTIONS[${#OPTIONS[*]}]="$CONTINUE"
# reset tty, otherwise serial console is broken
reset > /dev/null
clear
+# set defaults
+has_continue_option=false
+
+while getopts x c; do
+ case $c in
+ x) has_continue_option=true;;
+ '?') die "invalid option \`-$OPTARG'";;
+ :) die "missing argument to \`-$OPTARG' option";;
+ *) die "internal error";;
+ esac
+done
+
+if...