diff options
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/menubox9')
-rwxr-xr-x | Build/source/utils/dialog/dialog-1.1-20080819/samples/menubox9 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/menubox9 b/Build/source/utils/dialog/dialog-1.1-20080819/samples/menubox9 new file mode 100755 index 00000000000..9f46a16bebb --- /dev/null +++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/menubox9 @@ -0,0 +1,39 @@ +#!/bin/sh +# $Id: menubox9,v 1.1 2003/09/23 23:02:08 tom Exp $ +: ${DIALOG=dialog} + +exec 3>&1 +value=`$DIALOG --help-button \ + --clear \ + --title "Select Linux installation partition:" \ + --menu \ +"Please select a partition from the following list to use for your \ +root (/) Linux partition." 13 70 5 \ +"/dev/hda2" "Linux native 30724312K" \ +"/dev/hda4" "Linux native 506047K" \ +"/dev/hdb1" "Linux native 4096543K" \ +"/dev/hdb2" "Linux native 2586465K" \ +"---" "(add none, continue with setup)" \ +"---" "(add none, continue with setup)" \ +"---" "(add none, continue with setup)" \ +"---" "(add none, continue with setup)" \ +"---" "(add none, continue with setup)" \ +2>&1 1>&3` +retval=$? +exec 3>&- + +case $retval in + 0) + echo "$value chosen.";; + 1) + echo "Cancel pressed.";; + 2) + echo "Help pressed ($value)";; + 255) + if test -n "$value" ; then + echo "$value" + else + echo "ESC pressed." + fi + ;; +esac |