-Further try to cover apparent lack of reliability for udhcpc to dhcprelease
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1edb5add5c
commit
1e9377fea0
@ -93,7 +93,7 @@ NICSTOWAIT=`/sbin/ifconfig -a|grep HWaddr|grep ^eth|sed -e 's/ .*//'`
|
||||
for nic in $NICSTOWAIT; do
|
||||
touch /tmp/ignorenic.$nic
|
||||
ifconfig $nic up
|
||||
(udhcpc -i $nic -R;kill -USR2 `ps axf|grep -v grep|grep "udhcpc -i $nic -R"|awk '{print $1}'`;kill `ps axf|grep -v grep|grep "udhcpc -i $nic -R"|awk '{print $1}'`; rm /tmp/ignorenic.$nic; udhcpc -i $nic -R -C) &
|
||||
(udhcpc -i $nic -R;kill -USR2 `ps axf|grep -v grep|grep "udhcpc -i $nic -R"|awk '{print $1}'`;sleep 3;kill `ps axf|grep -v grep|grep "udhcpc -i $nic -R"|awk '{print $1}'`; rm /tmp/ignorenic.$nic; udhcpc -i $nic -R -C) &
|
||||
done
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user