bootdisk/trunk/batch-installer/installer-prep

hawk cvs at pld-linux.org
Tue Nov 22 22:03:19 CET 2005


Author: hawk
Date: Tue Nov 22 22:03:10 2005
New Revision: 6555

Modified:
   bootdisk/trunk/batch-installer/installer-prep
Log:
- suppress errors while cating /etc/{modules,modprobe}.conf


Modified: bootdisk/trunk/batch-installer/installer-prep
==============================================================================
--- bootdisk/trunk/batch-installer/installer-prep	(original)
+++ bootdisk/trunk/batch-installer/installer-prep	Tue Nov 22 22:03:10 2005
@@ -408,7 +408,7 @@
     if echo "$1" | grep -q $ide; then
       ## write info about ide adapters into modules.conf/modprobe.conf
       for i in /etc/modules.conf /etc/modprobe.conf; do
-        if ! cat $i | grep -q "^alias ide_hostadapter"; then
+        if ! cat $i 2> /dev/null | grep -q "^alias ide_hostadapter"; then
           test ! -f $i || cp $i $i.tmp
           echo "alias ide_hostadapter $ide" >> $i.tmp
           # alias for devfsd
@@ -432,7 +432,7 @@
   for scsi in $detected_scsi; do
     if echo "$1" | grep -q $scsi; then
       for i in /etc/modules.conf /etc/modprobe.conf; do
-        if ! cat $i | grep -q "^alias scsi_hostadapter"; then
+        if ! cat $i 2> /dev/null | grep -q "^alias scsi_hostadapter"; then
           test ! -f $i || cp $i $i.tmp
           echo "alias scsi_hostadapter $scsi" >> $i.tmp
           # alias for devfsd



More information about the pld-cvs-commit mailing list