home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / lib / partman / finish.d / 70aptinstall_reiserfs < prev    next >
Encoding:
Text File  |  2007-04-12  |  534 b   |  29 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/definitions.sh
  4.  
  5. reiserfs=no
  6.  
  7. for dev in $DEVICES/*; do
  8.     [ -d "$dev" ] || continue
  9.     cd $dev
  10.     partitions=
  11.     open_dialog PARTITIONS
  12.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  13.     [ "$fs" != free ] || continue
  14.     [ -f $id/method -a -f $id/acting_filesystem ] || continue
  15.     filesystem=$(cat $id/acting_filesystem)
  16.     case $filesystem in
  17.         reiserfs)
  18.         reiserfs=yes
  19.         ;;
  20.     esac
  21.     done
  22.     close_dialog
  23. done
  24.  
  25. if [ "$reiserfs" = yes ]; then
  26.     apt-install reiserfsprogs || true
  27. fi
  28.  
  29.