From 0373a6671f389ffb1306f677fd50c54e6a8355dc Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 17 Jun 2010 20:39:20 +0000 Subject: [PATCH] -Put in code to nbfs to clear conflicting DHCP leases a mac may hold, to have DDNS happy git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/etc/init.d/S10autodetect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-nbroot/overlay/etc/init.d/S10autodetect b/xCAT-nbroot/overlay/etc/init.d/S10autodetect index 2421cf002..15c5ca8ca 100755 --- a/xCAT-nbroot/overlay/etc/init.d/S10autodetect +++ b/xCAT-nbroot/overlay/etc/init.d/S10autodetect @@ -89,9 +89,10 @@ if [ $NEEDEHEA = 1 ]; then fi 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 -b & + (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) & done