From 64cea6d8b1888a8cace3b0dc74855581ab6cad57 Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 10 Dec 2014 15:45:12 +0800 Subject: [PATCH] fix for bug 4463: use service network restart to restart network, and wait longer for the network adapters initialization --- xCAT-server/share/xcat/install/scripts/post.sles.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 xCAT-server/share/xcat/install/scripts/post.sles.common diff --git a/xCAT-server/share/xcat/install/scripts/post.sles.common b/xCAT-server/share/xcat/install/scripts/post.sles.common old mode 100644 new mode 100755 index ae6db1e24..f7f17a2dd --- a/xCAT-server/share/xcat/install/scripts/post.sles.common +++ b/xCAT-server/share/xcat/install/scripts/post.sles.common @@ -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