home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- # DIALOG BOX
- # ------------
- # It prompts the user for a value. Then that value is store
- # in file /tmp/Fdrive_size, from where other programs may
- dialog --title "SELECT DRIVE SIZE" \
- --menu "\n What is your drive size? \n " 13 40 2 \
- "1.44 MB" "" \
- " 720 KB" "" \
- 2> /tmp/Fdrive_size
-
- export DRIVE_SIZE=`cat /tmp/Fdrive_size`
- rm -f /tmp/Fdrive_size
-
- echo $DRIVE_SIZE
- #export DRIVE_SIZE
-
- if [ $? = 1 -o $? = 255 ]; then
- rm -f /tmp/Fdrive_size
- exit
- fi
-
-