[Fai-commit] r6581 - trunk/examples/simple/scripts/CENTOS

Thomas Lange lange at alioth.debian.org
Wed Jun 22 14:38:23 UTC 2011


Author: lange
Date: 2011-06-22 14:38:23 +0000 (Wed, 22 Jun 2011)
New Revision: 6581

Modified:
   trunk/examples/simple/scripts/CENTOS/60-network-scripts
Log:
add check if kudzu exists


Modified: trunk/examples/simple/scripts/CENTOS/60-network-scripts
===================================================================
--- trunk/examples/simple/scripts/CENTOS/60-network-scripts	2011-06-22 13:56:05 UTC (rev 6580)
+++ trunk/examples/simple/scripts/CENTOS/60-network-scripts	2011-06-22 14:38:23 UTC (rev 6581)
@@ -20,8 +20,10 @@
     # Kudzu for some reason won't write eth0 into /etc/sysconfig/hwconf
     # from within the chroot. The following hack puts it in there
     # so that Kudzu doesn't overwrite our config on first boot.
-    grep eth0 $target/etc/sysconfig/hwconf || $ROOTCMD kudzu -c NETWORK -p \
+    if [ -f $target/sbin/kudzu ]; then
+	grep eth0 $target/etc/sysconfig/hwconf || $ROOTCMD kudzu -c NETWORK -p \
         >> $target/etc/sysconfig/hwconf
+    fi
 fi
 
 fcopy -iv /etc/sysconfig/network /etc/resolv.conf /etc/networks




More information about the Fai-commit mailing list