2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-14 15:20:29 +00:00

fix for bug 4463: use service network restart to restart network, and wait longer for the network adapters initialization

This commit is contained in:
ligc
2014-12-10 15:45:12 +08:00
parent fc00ce3c23
commit 85b75cfb6d

View File

@@ -33,14 +33,14 @@ echo "DHCLIENT_PRIMARY_DEVICE=yes" >> ifcfg-$PRINIC
fi
perl -pi -e 's/^FIREWALL="yes"/FIREWALL="no"/' /etc/sysconfig/network/config
/etc/init.d/network restart
service network restart
RAND=$(perl -e 'print int(rand(50)). "\n"')
sleep $RAND
jsi=0
while [ $(hostname) == 'linux' ]
do
if [ $jsi -gt 10 ]; then
if [ $jsi -gt 180 ]; then
logger "Slept too long!"
exit
fi