summaryrefslogtreecommitdiffstats
path: root/examples/lvm_menu/menu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lvm_menu/menu.sh')
-rw-r--r--examples/lvm_menu/menu.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/lvm_menu/menu.sh b/examples/lvm_menu/menu.sh
index bfada7e..e8a989e 100644
--- a/examples/lvm_menu/menu.sh
+++ b/examples/lvm_menu/menu.sh
@@ -3,7 +3,8 @@
# ################################################################ #
# Frontend to smenu to display a nice menu #
# #
-# FLAGS: -i (optional) add some help in the title #
+# FLAGS: -p The path of the smenu program #
+# -i (optional) add some help in the title #
# #
# ARGS: $1 (required) must contain a string which will become #
# the menu title #
@@ -26,9 +27,12 @@ declare integer INFO=0
# Option processing
# """""""""""""""""
-while getopts ih OPT 2>/dev/null
+while getopts p:ih OPT 2>/dev/null
do
case ${OPT} in
+ p) SMENU=${OPTARG}
+ ;;
+
i) INFO=1
;;
@@ -53,7 +57,7 @@ fi
# Menu display
# """"""""""""
-REP=$(../../smenu "$TITLE" \
+REP=$($SMENU "$TITLE" \
-s /Exit \
-q -d -M -n 30 -c -w \
-U "Exit menu" \