2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-12-11 03:30:40 +00:00

[xCAT-server] Add changes missed in 0dba62260c

This commit is contained in:
Samveen Gulati
2015-08-30 10:27:58 +00:00
parent f62925567d
commit 5393389544
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ fi
IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F: '{print $2}')
if [ -z $IP ]
then
dhclient eth0
dhclient $PRINIC
IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F: '{print $2}')
fi
echo "search #TABLE:site:key=domain:value#" >/etc/resolv.conf

View File

@@ -17,7 +17,7 @@ fi
IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F: '{print $2}')
if [ -z $IP ]
then
dhclient eth0
dhclient $PRINIC
IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F: '{print $2}')
fi
echo "search #TABLE:site:key=domain:value#" >/etc/resolv.conf

View File

@@ -25,7 +25,7 @@ fi
IP=$(ip addr show dev $PRINIC | grep inet | grep -v inet6 | awk '{print $2}' | head -n 1 | awk -F '/' '{print $1}')
if [ -z $IP ]
then
dhclient eth0
dhclient $PRINIC
#IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F: '{print $2}')
IP=$(ip addr show dev $PRINIC | grep inet | grep -v inet6 | awk '{print $2}' | head -n 1 | awk -F '/' '{print $1}')
fi