- Timestamp:
- Jun 25, 2006, 4:53:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r675 r682 152 152 153 153 AbortIfMkfsVfatMissing() { 154 #if fgrep"vfat" /etc/fstab &> /dev/null ; then154 #if grep -F "vfat" /etc/fstab &> /dev/null ; then 155 155 if ! which mkfs.vfat &> /dev/null ; then 156 156 Die "mkfs.vfat missing from your filesystem - please install your dosfstools RPM or DEB package. Perhaps your PATH environmental variable is broken, too?" … … 249 249 mkdir -p $bigdir/etc 250 250 cp --parents -pRdf $mappath $bigdir || LogIt "AKMF -- Could not copy $mappath to $bigdir\n" 251 if [ "`echo $mappath | fgrep".gz"`" ] ; then252 included_list=`gzip -dc $mappath | fgrep -i include | sed s/'"'// | sed s/'"'// | cut -d' ' -f2`253 else 254 included_list=` fgrep -i include $mappath | sed s/'"'// | sed s/'"'// | cut -d' ' -f2`251 if [ "`echo $mappath | grep -F ".gz"`" ] ; then 252 included_list=`gzip -dc $mappath | grep -Fi include | sed s/'"'// | sed s/'"'// | cut -d' ' -f2` 253 else 254 included_list=`grep -Fi include $mappath | sed s/'"'// | sed s/'"'// | cut -d' ' -f2` 255 255 fi 256 256 for included_item in $included_list ; do 257 257 if [ ! -e "$included_item" ] ; then 258 sss=`find $KEYDIR/keymaps | fgrep"${included_item}.inc"`259 [ "$sss" = "" ] && sss=`find $KEYDIR/keymaps | fgrep"$included_item"`258 sss=`find $KEYDIR/keymaps | grep -F "${included_item}.inc"` 259 [ "$sss" = "" ] && sss=`find $KEYDIR/keymaps | grep -F "$included_item"` 260 260 for ii in $sss ; do 261 261 [ -e "$ii" ] && AddKeyboardMappingFile $ii … … 286 286 scratchfile=$TMP_ROOT/blah.$$.dat 287 287 cp -f $filename $scratchfile || Die "CUACF -- cannot copy $filename to $scratchfile - did you run out of disk space?" 288 [ "`head $scratchfile -n1 | fgrep"bin/sh"`" != "" ] && StripComments $scratchfile "-$filename-"289 [ "`echo "$filename" | fgrep"etc/termcap"`" != "" ] && StripComments $scratchfile "-$filename-"290 if [ "`echo "$filename" | fgrep"lib/modules/" | grep "\.*o\.gz"`" != "" ] ; then288 [ "`head $scratchfile -n1 | grep -F "bin/sh"`" != "" ] && StripComments $scratchfile "-$filename-" 289 [ "`echo "$filename" | grep -F "etc/termcap"`" != "" ] && StripComments $scratchfile "-$filename-" 290 if [ "`echo "$filename" | grep -F "lib/modules/" | grep "\.*o\.gz"`" != "" ] ; then 291 291 mv $scratchfile $scratchfile.gz 292 292 gunzip -f $scratchfile || LogIt "Cannot gunzip $scratchfile.gz\n" … … 469 469 470 470 res=0 471 [ "`ps ax | fgrep"mondoarchive" | grep -v "grep"`" ] && res=$(($res+1))471 [ "`ps ax | grep -F "mondoarchive" | grep -v "grep"`" ] && res=$(($res+1)) 472 472 [ -f "/var/run/monitas-mondo.pid" ] && res=$(($res+1)) 473 473 [ "$res" -gt "1" ] && echo "yes" … … 488 488 cd / 489 489 490 my_partitions=`mount | fgrep$$ | cut -f1 -d' '`490 my_partitions=`mount | grep -F $$ | cut -f1 -d' '` 491 491 [ "$my_partitions" != "" ] && umount $my_partitions 492 492 [ "$TMP_ROOT" != "/tmp" ] && rm -Rf $TMP_ROOT … … 534 534 ln -sf $vanilla_lib_name $outdir$optimized_lib_name 535 535 echo "Excluding $optimized_lib_name" >> $LOGFILE 536 fgrep -vx "$optimized_lib_name $filelist" > $filelist.tmp536 grep -Fvx "$optimized_lib_name $filelist" > $filelist.tmp 537 537 echo "Replacing it with $vanilla_lib_name" >> $LOGFILE 538 538 echo "$vanilla_lib_name" >> $filelist.tmp … … 592 592 fi 593 593 echo "keyfile=$keyfile" >> $LOGFILE 594 locale=` fgrepKEYTABLE "$keyfile" | tr -d '"' |cut -d'=' -f2`594 locale=`grep -F KEYTABLE "$keyfile" | tr -d '"' |cut -d'=' -f2` 595 595 [ ! "$locale" ] && locale=`grep '.map$' "$keyfile" | sed 's/^.* //'` # Slackware 596 596 echo "locale=$locale" >> $LOGFILE 597 mp=`find $KEYDIR/keymaps | grep "i[3-8]86" | fgrep"${locale}." | grep -vx " *#.*"`597 mp=`find $KEYDIR/keymaps | grep "i[3-8]86" | grep -F "${locale}." | grep -vx " *#.*"` 598 598 [ ! "$mp" ] && mp=`find $KEYDIR/keymaps | grep "i[3-8]86" | grep "$locale[^r][^/]" | grep -vx " *#.*"` 599 599 for i in $mp ; do … … 656 656 LILO_EXE=lilo 657 657 fi 658 $LILO_EXE -V | fgrep"21.6" > /dev/null && Die "Please upgrade LILO. Your verison has a serious bug. If you're not _using_ LILO, fine, uninstall it. :)"658 $LILO_EXE -V | grep -F "21.6" > /dev/null && Die "Please upgrade LILO. Your verison has a serious bug. If you're not _using_ LILO, fine, uninstall it. :)" 659 659 else 660 660 LILO_EXE=`which false` … … 884 884 fi 885 885 fi 886 tr ' ' '\n' < $outfile.pre | tr -s '/' '/' | fgrep -vx "" | sort -u | egrep -v "/libX11|/libXext|/libXi|/libgtk|/libgdk" > $outfile886 tr ' ' '\n' < $outfile.pre | tr -s '/' '/' | grep -Fvx "" | sort -u | grep -Ev "/libX11|/libXext|/libXi|/libgtk|/libgdk" > $outfile 887 887 rm -f $tempfile $outfile.pre 888 888 [ "$res" -eq "0" ] && echo -e "\r\t\t\t\t\t\t\t\t$DONE" || echo "\nFailed." … … 981 981 > $outfile 982 982 partlist=$(mount | cut -d' ' -f1,3,5 \ 983 | egrep -v "((none|/tmp|/ISOs|/proc|/dev/root) )|/mnt/" \983 | grep -Ev "((none|/tmp|/ISOs|/proc|/dev/root) )|/mnt/" \ 984 984 | tr ' ' '|') 985 985 … … 1035 1035 path=$1 1036 1036 echo -en "In the directory '$path' you will find the images:-\n" 1037 for fname in `ls $path | fgrepmindi-` ; do1037 for fname in `ls $path | grep -F mindi-` ; do 1038 1038 printf "%19s " $fname 1039 1039 done … … 1064 1064 echo "module $module --> $r" >> $LOGFILE 1065 1065 [ "$r" ] && echo "$r" 1066 [ -f "$oss" ] && find $oss | fgrep$module1066 [ -f "$oss" ] && find $oss | grep -F $module 1067 1067 done 1068 1068 find /lib/modules/$kern/modules.* -type f 2> /dev/null … … 1138 1138 location=`echo "$path/$fname_to_find" | tr -s '/' '/'` 1139 1139 if echo "$location" | grep "lib/lib" 2> /dev/null ; then 1140 loclist=`find $path -maxdepth 1 | fgrep"$fname_to_find"`1140 loclist=`find $path -maxdepth 1 | grep -F "$fname_to_find"` 1141 1141 else 1142 1142 loclist=$location … … 1152 1152 done 1153 1153 # resolved=`file $location | $AWK '{print $NF;}'` 1154 # if [ "`echo "$resolved" | fgrep"/"`" = "" ] ; then1154 # if [ "`echo "$resolved" | grep -F "/"`" = "" ] ; then 1155 1155 # stub=`dirname $location` 1156 1156 # output="/$stub/$resolved $output" … … 1328 1328 if [ -d "/proc/lvm" ] || [ -d "/dev/mapper" ]; then 1329 1329 echo -en "\rAnalyzing LVM...\r" 1330 all_partitions=`$MINDI_LIB/analyze-my-lvm | fgrep">>>" | cut -d' ' -f2-32`1330 all_partitions=`$MINDI_LIB/analyze-my-lvm | grep -F ">>>" | cut -d' ' -f2-32` 1331 1331 fi 1332 1332 all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`" 1333 1333 # echo "all partitions = $all_partitions" > /dev/stderr 1334 1334 for i in $IMAGE_DEVS ; do 1335 mount | fgrep"$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted."1335 mount | grep -F "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted." 1336 1336 done 1337 1337 [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`" … … 1339 1339 for c_p in $all_partitions ; do 1340 1340 # echo "c_p = $c_p" > /dev/stderr 1341 [ "`echo "/dev/floppy /dev/fd0h1440 /dev/fd0H1440 /dev/cdrom /dev/cdrom/cdrom /dev/cdrom/cdrom1 /dev/cdrom/cdrom2 /dev/cdrom0 /dev/cdrom1 /dev/cdrom2 /dev/cdrom3 /dev/cdrw" | fgrep "$c_p"`" != "" ] || [ "`echo "$c_p" | fgrep "/dev/scd"`" != "" ] || [ "`echo "$c_p" | fgrep "/dev/ram"`" != "" ] || [ "`echo "$c_p" | grep ":"`" != "" ] || [ "`echo "$c_p" | fgrep":/"`" != "" ] && continue1342 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | fgrep"$c_p"`" ] && continue1341 [ "`echo "/dev/floppy /dev/fd0h1440 /dev/fd0H1440 /dev/cdrom /dev/cdrom/cdrom /dev/cdrom/cdrom1 /dev/cdrom/cdrom2 /dev/cdrom0 /dev/cdrom1 /dev/cdrom2 /dev/cdrom3 /dev/cdrw" | grep -F "$c_p"`" != "" ] || [ "`echo "$c_p" | grep -F "/dev/scd"`" != "" ] || [ "`echo "$c_p" | grep -F "/dev/ram"`" != "" ] || [ "`echo "$c_p" | grep ":"`" != "" ] || [ "`echo "$c_p" | grep -F ":/"`" != "" ] && continue 1342 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | grep -F "$c_p"`" ] && continue 1343 1343 [ "`echo "$c_p" | grep -x "/dev/cdroms.*"`" ] && continue 1344 if [ -h "$c_p" ] && [ "`echo "$c_p" | fgrep "/dev/hd"`" = "" ] && [ "`echo "$c_p" | fgrep "/dev/sd"`" = "" ] && [ "`echo "$c_p" | fgrep"/dev/md"`" = "" ] ; then1344 if [ -h "$c_p" ] && [ "`echo "$c_p" | grep -F "/dev/hd"`" = "" ] && [ "`echo "$c_p" | grep -F "/dev/sd"`" = "" ] && [ "`echo "$c_p" | grep -F "/dev/md"`" = "" ] ; then 1345 1345 current_partition=`ResolveSoftlink $c_p` 1346 [ "`echo "$current_partition" | fgrep"/dev/mapper"`" != "" ] && current_partition="$c_p"1347 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | fgrep"$current_partition"`" ] && continue1346 [ "`echo "$current_partition" | grep -F "/dev/mapper"`" != "" ] && current_partition="$c_p" 1347 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | grep -F "$current_partition"`" ] && continue 1348 1348 else 1349 1349 current_partition="$c_p" … … 1426 1426 [ "`echo "$current_partition" | grep -c "^/"`" -ne "1" ] && continue 1427 1427 if [ "$partition_format" = "swap" ] || [ "$partition_mountpt" = "swap" ] ; then 1428 partition_size=` fgrep -v "Priority" /proc/swaps | tr -s '\t' ' ' | fgrep"$current_partition" | $AWK '{print $3}'`1428 partition_size=`grep -Fv "Priority" /proc/swaps | tr -s '\t' ' ' | grep -F "$current_partition" | $AWK '{print $3}'` 1429 1429 [ "$partition_mountpt" != "swap" ] && partition_mountpt="swap" 1430 1430 [ "$partition_format" != "swap" ] && partition_format="swap" … … 1432 1432 totalsize=0 1433 1433 items=0 1434 for i in `tr -s ' ' '\t' < /proc/swaps | fgrep -v "Filename" | cut -f3` ; do1434 for i in `tr -s ' ' '\t' < /proc/swaps | grep -Fv "Filename" | cut -f3` ; do 1435 1435 totalsize=$(($totalsize+$i)) 1436 1436 items=$(($items+1)) … … 1446 1446 if [ "$partition_mountpt" = "" ] ; then 1447 1447 if [ "`pvdisplay $current_lvolume 2> /dev/null`" != "" ] || [ "`lvm pvdisplay $current_lvolume 2> /dev/null`" != "" ] ; then 1448 if [ "` fgrepdevice /etc/raidtab 2> /dev/null | grep -w $current_partition`" ] ; then1448 if [ "`grep -F device /etc/raidtab 2> /dev/null | grep -w $current_partition`" ] ; then 1449 1449 partition_mountpt="raid" 1450 1450 partition_format="raid" … … 1459 1459 echo "Examining $current_partition (mount=$partition_mountpt fmt=$partition_format psz=$psz)" >> $LOGFILE 1460 1460 [ "$psz" != "lvm" ] && psz=$(($psz/1024)) 1461 if [ "`echo " $IMAGE_DEVS " | fgrep" $current_partition "`" != "" ] ; then1461 if [ "`echo " $IMAGE_DEVS " | grep -F " $current_partition "`" != "" ] ; then 1462 1462 partition_mountpt="image" 1463 1463 old_partition_fmt=$partition_format … … 1474 1474 fi 1475 1475 fi 1476 if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | fgrep" $current_partition "`" ] || [ "`echo " $EXCLUDE_DEVS " | grep " $current_partition "`" ] ; then1476 if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep -F " $current_partition "`" ] || [ "`echo " $EXCLUDE_DEVS " | grep " $current_partition "`" ] ; then 1477 1477 echo "Excluding $current_partition from mountlist" >> $LOGFILE 1478 1478 continue … … 1488 1488 if [ "$partition_format" = "Compaq diagnostics" ] ; then 1489 1489 partition_format="compaq" 1490 elif [ ! "` fgrepdevice /etc/raidtab 2> /dev/null | grep -w $current_partition`" ] ; then1490 elif [ ! "`grep -F device /etc/raidtab 2> /dev/null | grep -w $current_partition`" ] ; then 1491 1491 LogIt "Unable to find mountpoint of $current_partition - ignoring\n" 1492 1492 continue … … 1499 1499 echo "Unknown partition (outstring = $unofficial_outstring)" >> $LOGFILE 1500 1500 elif [ "$partition_mountpt" = "" ] && [ -f "/etc/raidtab" ] ; then 1501 if [ "` fgrep device /etc/raidtab 2>/dev/null | fgrep$current_partition`" ] ; then1501 if [ "`grep -F device /etc/raidtab 2>/dev/null | grep -F $current_partition`" ] ; then 1502 1502 partition_mountpt=raid 1503 1503 partition_format=raid … … 1545 1545 rmdir $1 1546 1546 echo -en " " > $1 1547 if [ "` fgrep -i "debian" /etc/issue.net 2> /dev/null`" ] ; then1547 if [ "`grep -Fi "debian" /etc/issue.net 2> /dev/null`" ] ; then 1548 1548 sed s/ZZZZZ/$MINDI_VERSION/ $MINDI_LIB/msg-txt | sed s/YYYYY/"Mondo Rescue"/ | sed s/XXXXX/"a cousin of"/ | sed s%DDDDD%"Debian GNU\/`uname -s` `cut -d ' ' -f 3 /etc/issue.net` `hostname`"% | sed s/KKKKK/"Kernel `uname -r` on a `uname -m`"/ | sed s/TTTTT/"`LC_TIME=C date`"/ >> $1.tmp 1549 1549 else … … 1610 1610 read i 1611 1611 [ "$i" != "y" ] && [ "$i" != "Y" ] && return 1612 mount | fgrep/dev/fd > /dev/null && Die "Please unmount your floppies first."1612 mount | grep -F /dev/fd > /dev/null && Die "Please unmount your floppies first." 1613 1613 echo "WARNING! THIS WILL ERASE YOUR FLOPPY DISKS." 1614 1614 [ ! -e "$boot_dev" ] && Die "Cannot find $boot_dev - is your Linux distro broken?" 1615 1615 [ ! -e "$data_dev" ] && Die "Cannot find $data_dev - is your Linux distro broken?" 1616 i=`find $imagesdir -type f | fgrep"/mindi-root.1" 2> /dev/null`1617 j=`find $imagesdir -type f | fgrep "/mindi-boot" | egrep -v '2880|5760'`1616 i=`find $imagesdir -type f | grep -F "/mindi-root.1" 2> /dev/null` 1617 j=`find $imagesdir -type f | grep -F "/mindi-boot" | grep -Ev '2880|5760'` 1618 1618 # echo "i=$i" 1619 1619 # echo "j=$j" … … 1625 1625 fi 1626 1626 count=1 1627 for i in `find $imagesdir | fgrepmindi-data` ; do1627 for i in `find $imagesdir | grep -F mindi-data` ; do 1628 1628 CopyImageToDisk $i $data_dev "data disk #$count" 1629 1629 count=$(($count+1)) … … 1714 1714 local disksize 1715 1715 disksize=$1 1716 if [ "` fgrep -i "debian" /etc/issue.net 2> /dev/null`" ] ; then1716 if [ "`grep -Fi "debian" /etc/issue.net 2> /dev/null`" ] ; then 1717 1717 sed s/ZZZZZ/$MINDI_VERSION/ $MINDI_LIB/msg-txt | sed s/YYYYY/"Mondo Rescue"/ | sed s/XXXXX/"a cousin of"/ | sed s%DDDDD%"Debian GNU\/`uname -s` `cut -d ' ' -f 3 /etc/issue.net` `hostname`"% | sed s/KKKKK/"Kernel `uname -r` on a `uname -m`"/ | sed s/TTTTT/"`LC_TIME=C date`"/ 1718 1718 else … … 2021 2021 fi 2022 2022 if [ $? -ne "0" ] ; then 2023 if [ "` fgrep"/tmp/dev.0" $LOGFILE`" ] ; then2023 if [ "`grep -F "/tmp/dev.0" $LOGFILE`" ] ; then 2024 2024 LogIt "The '/tmp/dev.0' error is NOT Mindi's fault. It is LILO's.\n" 2025 2025 LogIt "Please reboot your PC as a workaround.\n" … … 2477 2477 local devpath drive res stub 2478 2478 device=$1 2479 if [ "`echo "$device" | fgrep"/dev/md"`" != "" ] ; then2479 if [ "`echo "$device" | grep -F "/dev/md"`" != "" ] ; then 2480 2480 res=`SizeOfRaidPartition $device` 2481 2481 [ "$res" = "" ] && Die "Cannot find $device's size - is your /etc/raidtab sane?" … … 2490 2490 echo "------- $FDISK log end ------------" >> $LOGFILE 2491 2491 # end patch 2492 [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | fgrep"$device " | cut -d' ' -f2`2492 [ "$res" = "" ] && res=`df -k -P -x supermount | tr -s '\t' ' ' | grep -F "$device " | cut -d' ' -f2` 2493 2493 [ "$res" = "" ] && res="-1" 2494 2494 echo $res … … 2602 2602 root="/" 2603 2603 fi 2604 for fname in `find $root -maxdepth 2 -type f | fgrep lin | egrep -v '^/proc/|^/net/'` ; do2604 for fname in `find $root -maxdepth 2 -type f | grep -F lin | grep -Ev '^/proc/|^/net/'` ; do 2605 2605 [ ! -e "$fname" ] && continue 2606 2606 [ "$fname" = "/boot/vmlinuz.shipped" ] && [ -f "/boot/vmlinuz" ] && continue; # ignore SuSE's extra kernel … … 2614 2614 [ "$fkern_ver" = "" ] && continue 2615 2615 # echo "$fname --> $fkern_ver (but we want $we_want_version)" >> /dev/stderr 2616 [ "`echo "$fkern_ver" | fgrep"$we_want_version "`" = "" ] && continue2616 [ "`echo "$fkern_ver" |grep -F "$we_want_version "`" = "" ] && continue 2617 2617 [ -f "$fname" ] || continue 2618 2618 [ -h "$fname" ] && continue … … 2621 2621 if [ "$?" -eq "0" ] ; then 2622 2622 # Used by ia64 2623 if [ "`gzip -cd $fname | strings 2> /dev/null | fgrep"$kdate"`" = "" ] ; then2623 if [ "`gzip -cd $fname | strings 2> /dev/null | grep -F "$kdate"`" = "" ] ; then 2624 2624 LogIt "Have you recompiled your kernel \"$fname\" w/o rebooting? Naughty but I'll allow it...\n" 2625 2625 duff_kernels="$fname $duff_kernels" 2626 2626 else 2627 [ "`echo "$fname" | fgrep"vmlinux"`" ] && continue2627 [ "`echo "$fname" | grep -F "vmlinux"`" ] && continue 2628 2628 possible_kernels="$fname $possible_kernels" 2629 2629 fi 2630 2630 else 2631 if [ "`strings $fname 2> /dev/null | fgrep"$kdate"`" = "" ] ; then2631 if [ "`strings $fname 2> /dev/null | grep -F "$kdate"`" = "" ] ; then 2632 2632 LogIt "Have you recompiled your kernel \"$fname\" w/o rebooting?\n Naughty but I'll allow it...\n" 2633 2633 duff_kernels="$fname $duff_kernels" 2634 2634 else 2635 [ "`echo "$fname" | fgrep"vmlinux"`" ] && continue2635 [ "`echo "$fname" | grep -F "vmlinux"`" ] && continue 2636 2636 possible_kernels="$fname $possible_kernels" 2637 2637 fi … … 2674 2674 fi 2675 2675 done 2676 if echo " $possible_kernels " | fgrep"/boot/vmlinuz " &> /dev/null ; then2676 if echo " $possible_kernels " | grep -F "/boot/vmlinuz " &> /dev/null ; then 2677 2677 output=/boot/vmlinuz 2678 2678 echo "Schlomo, this one's for you." >> $LOGFILE … … 2703 2703 old_pwd=`pwd` 2704 2704 cd $bigdir 2705 list_of_files=`GetFileSizeList . | sort -nr | cut -f2 | fgrep -v "/dev/"`2705 list_of_files=`GetFileSizeList . | sort -nr | cut -f2 | grep -Fv "/dev/"` 2706 2706 progress=0 2707 2707 total_files=`CountItemsIn "$list_of_files"` … … 2850 2850 echo "Adding $i ($s KB) to the rootfs" >> $LOGFILE 2851 2851 cp -df $i $mountpoint/ || LogIt "Unable to copy $i to $mountpoint\n" 2852 [ "`echo "$i" | fgrep".gz"`" ] && gunzip -f $mountpoint/`basename $i`2852 [ "`echo "$i" | grep -F ".gz"`" ] && gunzip -f $mountpoint/`basename $i` 2853 2853 done 2854 2854 # if [ -e "/dev/.devfsd" ] ; then … … 2900 2900 WhichOfTheseModulesAreLoaded() { 2901 2901 local modname loaded_modules 2902 loaded_modules=" `lsmod | tr -s ' ' '\t' | cut -f1 | fgrep -vx "Modules" | tr '\n' ' '` "2902 loaded_modules=" `lsmod | tr -s ' ' '\t' | cut -f1 | grep -Fvx "Modules" | tr '\n' ' '` " 2903 2903 for modname in $1 ; do 2904 [ "`echo "$loaded_modules" | fgrep" $modname "`" ] && echo "$modname"2904 [ "`echo "$loaded_modules" | grep -F " $modname "`" ] && echo "$modname" 2905 2905 done 2906 2906 } … … 3017 3017 fi 3018 3018 FixPathIfBroken 3019 [ -f "$MINDI_LIB/vmlinuz" ] && FAILSAFE_KVER=`strings $MINDI_LIB/vmlinuz 2> /dev/null | egrep"2\.[46]" | cut -d' ' -f1`3019 [ -f "$MINDI_LIB/vmlinuz" ] && FAILSAFE_KVER=`strings $MINDI_LIB/vmlinuz 2> /dev/null | grep -E "2\.[46]" | cut -d' ' -f1` 3020 3020 AbortIfMkfsVfatMissing 3021 3021 ### BCO … … 3027 3027 FindLiloBinary 3028 3028 fi 3029 fgrep " $TMP_ROOT " /proc/mounts | fgreptmpfs > /dev/null 2> /dev/null && TMP_ROOT=/home && LogIt "Changing TMP_ROOT to $TMP_ROOT because you're using tmpfs for /tmp\n" ; # tmpfs doesn't like Mindi and /tmp, for some reason3029 grep -F " $TMP_ROOT " /proc/mounts | grep -F tmpfs > /dev/null 2> /dev/null && TMP_ROOT=/home && LogIt "Changing TMP_ROOT to $TMP_ROOT because you're using tmpfs for /tmp\n" ; # tmpfs doesn't like Mindi and /tmp, for some reason 3030 3030 rm -f /tmp/mindi_lo 3031 3031 trap "Aborted" SIGTERM
Note:
See TracChangeset
for help on using the changeset viewer.