home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / disk-man / linux-fl.000 / linux-fl / linux-floppies / building-blocks / SeTsize < prev   
Encoding:
Text File  |  1996-04-04  |  470 b   |  24 lines

  1. #!/bin/sh
  2.  
  3. # DIALOG BOX
  4. # ------------
  5. # It prompts the user for a value. Then that value is store
  6. # in file /tmp/Fdrive_size, from where other programs may
  7. dialog     --title "SELECT DRIVE SIZE" \
  8.     --menu "\n What is your drive size? \n " 13 40 2 \
  9. "1.44 MB"     "" \
  10. " 720 KB"     "" \
  11. 2> /tmp/Fdrive_size
  12.  
  13. export DRIVE_SIZE=`cat /tmp/Fdrive_size`
  14. rm -f /tmp/Fdrive_size
  15.  
  16. echo $DRIVE_SIZE
  17. #export DRIVE_SIZE 
  18.  
  19. if [ $? = 1 -o $? = 255 ]; then
  20.  rm -f /tmp/Fdrive_size 
  21.  exit
  22. fi
  23.  
  24.