home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / boot / isolinux / initrd / in / usr / lib / setup / SeTDOS < prev    next >
Encoding:
Text File  |  2006-03-29  |  674 b   |  28 lines

  1. #!/bin/sh
  2. TMP=/var/log/setup/tmp
  3. export TEXTDOMAIN=SeTDOS
  4.  
  5. if [ ! -d $TMP ]; then
  6.   mkdir -p $TMP
  7. fi
  8. rm -f $TMP/SeTDOS
  9. touch $TMP/SeTDOS
  10. crunch () { # remove extra whitespace
  11.  read STRING;
  12.  echo $STRING
  13. }
  14.  
  15. dialog --title "`gettext "Additional partitions setup"`" \
  16. --yesno "`gettext "Would you like to detect and add the rest of your partitions to your /etc/fstab \
  17. so that these partitions are visible from Linux?"`" \
  18. 6 70
  19. if [ ! $? = 0 ]; then
  20.  exit
  21. fi
  22. rebuildfstab
  23.  
  24. echo "`gettext "Adding this information to your /etc/fstab:"`" > $TMP/tempmsg
  25.  
  26. cat $TMP/SeTDOS >> $TMP/tempmsg
  27. dialog --title "`gettext "DONE ADDING PARTITIONS"`" --no-cancel --textbox $TMP/tempmsg 15 72
  28.