From eb573f0813158892b9bb84e5373cd63b64dadf56 Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 14 Apr 2010 03:09:02 +0000 Subject: [PATCH] do not require eth0 to be configured git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5768 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/post.sles11 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.sles11 b/xCAT-server/share/xcat/install/scripts/post.sles11 index b52c7f0c8..e20c907a1 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles11 +++ b/xCAT-server/share/xcat/install/scripts/post.sles11 @@ -31,11 +31,13 @@ then cd /etc/sysconfig/network if [ ! -r ifcfg-$PRINIC ] then - cp -f ifcfg-eth0 ifcfg-$PRINIC +# cp -f ifcfg-eth0 ifcfg-$PRINIC + mv -f ifcfg-eth0 ifcfg-$PRINIC perl -pi -e "s/eth0/$PRINIC/" ifcfg-$PRINIC - echo "DHCLIENT_PRIMARY_DEVICE=yes" >> ifcfg-$PRINIC +# echo "DHCLIENT_PRIMARY_DEVICE=yes" >> ifcfg-$PRINIC fi fi +echo "DHCLIENT_PRIMARY_DEVICE=yes" >> ifcfg-$PRINIC perl -pi -e 's/^FIREWALL="yes"/FIREWALL="no"/' /etc/sysconfig/network/config /etc/init.d/network restart