/contrib/dialog/samples/menubox9

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 26 lines · 21 code · 3 blank · 2 comment · 1 complexity · ae7f7f8a1756b5243db8631cb1a0c122 MD5 · raw file

  1. #!/bin/sh
  2. # $Id: menubox9,v 1.6 2010/01/13 10:20:03 tom Exp $
  3. . ./setup-vars
  4. exec 3>&1
  5. RESULT=`$DIALOG --help-button \
  6. --clear \
  7. --title "Select Linux installation partition:" "$@" \
  8. --menu \
  9. "Please select a partition from the following list to use for your \
  10. root (/) Linux partition." 13 70 5 \
  11. "/dev/hda2" "Linux native 30724312K" \
  12. "/dev/hda4" "Linux native 506047K" \
  13. "/dev/hdb1" "Linux native 4096543K" \
  14. "/dev/hdb2" "Linux native 2586465K" \
  15. "---" "(add none, continue with setup)" \
  16. "---" "(add none, continue with setup)" \
  17. "---" "(add none, continue with setup)" \
  18. "---" "(add none, continue with setup)" \
  19. "---" "(add none, continue with setup)" \
  20. 2>&1 1>&3`
  21. retval=$?
  22. exec 3>&-
  23. . ./report-string