ignore dhcp from non ethernet devices
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10534 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5863eab0ad
commit
98ef00a0d1
@ -159,7 +159,7 @@ else # for common mode
|
||||
if [ -e '/etc/SuSE-release' ]; then
|
||||
OSVER=`grep -h VERSION /etc/SuSE-release |awk '{print $3}'`
|
||||
fi
|
||||
SIPS=`grep -h dhcp-server-identifier /var/lib/dhclient/dhclient*.leases 2> /dev/null|awk '{print $3}'|sed -e 's/;//'`
|
||||
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`
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user