fix for bug 4463: use service network restart to restart network, and wait longer for the network adapters initialization
This commit is contained in:
parent
dc9806c023
commit
64cea6d8b1
4
xCAT-server/share/xcat/install/scripts/post.sles.common
Normal file → Executable file
4
xCAT-server/share/xcat/install/scripts/post.sles.common
Normal file → Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user