Changeset 305 in MondoRescue for branches/2.06/mindi
- Timestamp:
- Jan 12, 2006, 5:37:42 PM (18 years ago)
- Location:
- branches/2.06/mindi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mindi/aux-tools/sbin/format-and-kludge-vfat
r273 r305 107 107 [ ! -e "/mnt/tmpK" ] && mkdir /mnt/tmpK 108 108 mount $device -t vfat /mnt/tmpK || Die "Can't mount device $device" 109 size=`df -m /mnt/tmpK | tr -s ' ' ' ' | cut -d' ' -f2 | tail -n 1`109 size=`df -m -P /mnt/tmpK | tr -s ' ' ' ' | cut -d' ' -f2 | tail -n 1` 110 110 umount /mnt/tmpK || Die "Can't unmount /mnt/tmpK" 111 111 -
branches/2.06/mindi/mindi
r303 r305 1901 1901 rm -Rf $mountpoint/lost+found 1902 1902 dd if=/dev/zero of=$mountpoint/zero bs=1k count=16 &> /dev/null 1903 free_space=`df -k $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`1903 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 1904 1904 cp -f $kernelpath $mountpoint/vmlinuz > /dev/null 2> /dev/null 1905 1905 if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then … … 1924 1924 return $res 1925 1925 fi 1926 free_space=`df -k $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`1926 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 1927 1927 max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`)) 1928 1928 echo "Free space left on floppy = $free_space KB" >> $LOGFILE … … 2038 2038 rm -Rf $mountpoint/lost+found 2039 2039 dd if=/dev/zero of=$mountpoint/zero bs=1k count=16 &> /dev/null 2040 free_space=`df -k $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`2040 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 2041 2041 cp -f $kernelpath $mountpoint/vmlinuz &> /dev/null 2042 2042 if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then … … 2061 2061 return $res 2062 2062 fi 2063 free_space=`df -k $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`2063 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 2064 2064 max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`)) 2065 2065 echo "Free space left on floppy = $free_space KB" >> $LOGFILE … … 2410 2410 echo "------- $FDISK log end ------------" >> $LOGFILE 2411 2411 # end patch 2412 [ "$res" = "" ] && res=`df -k - x supermount | tr -s '\t' ' ' | fgrep "$device " | cut -d' ' -f2`2412 [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | fgrep "$device " | cut -d' ' -f2` 2413 2413 [ "$res" = "" ] && res="-1" 2414 2414 echo $res -
branches/2.06/mindi/rootfs/sbin/init
r287 r305 342 342 343 343 HowMuchFreeSpaceOnRamdisk() { 344 df -m | grep /dev/ram | head -n1 | tr -s '\t' ' ' | cut -d' ' -f4344 df -m -P | grep /dev/ram | head -n1 | tr -s '\t' ' ' | cut -d' ' -f4 345 345 } 346 346
Note:
See TracChangeset
for help on using the changeset viewer.