home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / lib / partman / choose_partition / 45auto / do_option < prev   
Encoding:
Text File  |  2009-04-19  |  577 b   |  22 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. code=99 # signals a retry
  6. while [ $code = 99 ]; do
  7.     ask_user /lib/partman/automatically_partition
  8.     code=$?
  9.     if [ $code -ge 128 ] && [ $code -lt 192 ]; then
  10.         exit $code # killed by signal
  11.     elif [ $code -ge 100 ]; then
  12.         # 255: backup from subsidiary question; break and return to
  13.         # choose_partition menu
  14.         # 100-127, 192-254: attempt to skip the manual partitioner (from
  15.         # display.d), which isn't appropriate if the manual partitioner
  16.         # has already been displayed, so treat this exactly like
  17.         # backup
  18.         exit 0
  19.     fi
  20. done
  21. exit $code
  22.