-Turns out udhcpc will refuse to send a DHCPRELEASE if the interface wasn't set up, use real script to setup instead of /bin/true
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6575 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8e4f81a2b3
commit
34b6d457f8
@ -92,7 +92,7 @@ NICSTOWAIT=`/sbin/ifconfig -a|grep HWaddr|grep ^eth|sed -e 's/ .*//'`
|
||||
#run udhcpc in two ways, to flush out leases with uid and leases without uid, and actually use the results of the more 'linux-like' lease, either way, on exit will release all to hold no leases
|
||||
for nic in $NICSTOWAIT; do
|
||||
ifconfig $nic up
|
||||
(udhcpc -i $nic -R -s /bin/true ;kill `ps axf|grep "udhcpc -i $nic -R"|awk '{print $1}'`; sleep 1; udhcpc -i $nic -R -C) &
|
||||
(udhcpc -i $nic -R;kill `ps axf|grep "udhcpc -i $nic -R"|awk '{print $1}'`; sleep 1; udhcpc -i $nic -R -C) &
|
||||
done
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user