Fix infinite loop on dhclient without link
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10537 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f3d17e5588
commit
2700af8b63
@ -2,8 +2,13 @@
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
||||
if [ $reason = "PREINIT" -o $reason = "PREINIT6" ]; then
|
||||
ip link set $interface up
|
||||
tries=50
|
||||
while ! (ip link show $interface|grep LOWER_UP > /dev/null 2>&1); do
|
||||
sleep 0.1
|
||||
if [ $tries = 0 ]; then
|
||||
break
|
||||
fi
|
||||
tries=$((tries-1))
|
||||
done
|
||||
elif [ $reason = "BOUND" ]; then
|
||||
if [ ! -z "$new_ip_address" -a ! -z "$new_subnet_mask" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user