fixed a problem in power 775 that compute node cannot get its xcatserver ip from dhcp server over hfi, which was introduced by revision 10534.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11880 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e7a7110d90
commit
926c88c43e
@ -170,7 +170,10 @@ else # for common mode
|
||||
fi
|
||||
SIPS=`grep -h dhcp-server-identifier /var/lib/dhclient/dhclient*eth*.leases 2> /dev/null|awk '{print $3}'|sed -e 's/;//'`
|
||||
if [ -z "$SIPS" ]; then
|
||||
SIPS=`grep -h DHCPSID /var/lib/dhcpcd/*.info 2> /dev/null|awk -F= '{print $2}'|sed -e s/\'//g`
|
||||
SIPS=`grep -h dhcp-server-identifier /var/lib/dhclient/dhclient*hf*.leases 2> /dev/null|awk '{print $3}'|sed -e 's/;//'`
|
||||
if [ -z "$SIPS" ]; then
|
||||
SIPS=`grep -h DHCPSID /var/lib/dhcpcd/*.info 2> /dev/null|awk -F= '{print $2}'|sed -e s/\'//g`
|
||||
fi
|
||||
fi
|
||||
SIP=`echo $SIPS|awk '{printf $NF}' | tail -n 1` #Pick one for wget
|
||||
if [ -n "$SIP" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user