- Timestamp:
- Nov 14, 2007, 1:59:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/mindi
r1794 r1796 2056 2056 if [ "$ARCH" = "ia64" ] ; then 2057 2057 mountefi=0 2058 $DF-T | grep /boot/efi | grep -q vfat2058 df -T | grep /boot/efi | grep -q vfat 2059 2059 if [ $? -ne 0 ]; then 2060 2060 mount /boot/efi … … 2096 2096 [ "$mountpoint" != "" ] && rm -Rf $mountpoint/lost+found 2097 2097 dd if=/dev/zero of=$mountpoint/zero bs=1k count=16 &> /dev/null 2098 free_space=` $DF-k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`2098 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 2099 2099 cp -f $kernelpath $mountpoint/vmlinuz > /dev/null 2> /dev/null 2100 2100 if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then … … 2121 2121 return $res 2122 2122 fi 2123 free_space=` $DF-k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`2123 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 2124 2124 max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`)) 2125 2125 echo "Free space left on floppy = $free_space KB" >> $LOGFILE … … 2236 2236 [ "$mountpoint" != "" ] && rm -Rf $mountpoint/lost+found 2237 2237 dd if=/dev/zero of=$mountpoint/zero bs=1k count=16 &> /dev/null 2238 free_space=` $DF-k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`2238 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 2239 2239 cp -f $kernelpath $mountpoint/vmlinuz &> /dev/null 2240 2240 if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then … … 2261 2261 return $res 2262 2262 fi 2263 free_space=` $DF-k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4`2263 free_space=`df -k -P $mountpoint | tail -n1 | tr -s ' ' '\t' | cut -f4` 2264 2264 max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`)) 2265 2265 echo "Free space left on floppy = $free_space KB" >> $LOGFILE … … 2524 2524 res=`$FDISK -s $device 2>> $LOGFILE` 2525 2525 # end patch 2526 [ "$res" = "" ] && res=` $DF-k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2`2526 [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2` 2527 2527 [ "$res" = "" ] && res="-1" 2528 2528 echo $res … … 3190 3190 lsmod >> $LOGFILE 3191 3191 MODULES="`cat /proc/modules | awk '{print $1}'`" 3192 DF="/bin/df"3193 3192 if [ -x /usr/sbin/esxcfg-module ]; then 3194 3193 echo "VMWare ESX server detected - Enabling dedicated support" >> $LOGFILE … … 3198 3197 /usr/sbin/esxcfg-module -l >> $LOGFILE 3199 3198 MODULES="$MODULES `/usr/sbin/esxcfg-module -l | awk '{print $1}'`" 3200 #DF="/usr/sbin/vdf"3201 3199 fi 3202 3200 echo "-------------" >> $LOGFILE 3203 echo " `basename $DF`result:" >> $LOGFILE3201 echo "df result:" >> $LOGFILE 3204 3202 echo "----------" >> $LOGFILE 3205 $DF-T >> $LOGFILE3203 df -T >> $LOGFILE 3206 3204 echo "-------------" >> $LOGFILE 3207 3205 echo "Liste of extra modules is:" >> $LOGFILE
Note:
See TracChangeset
for help on using the changeset viewer.