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
This commit is contained in:
parent
3d0883d4a8
commit
eb573f0813
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user