2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-16 03:10:36 +00:00

Use network settings from the command line (#1980)

This commit is contained in:
Matt Ezell
2016-10-19 03:15:50 -04:00
committed by yangsong
parent 05b9dcdeea
commit 4a84d6625d

View File

@ -300,6 +300,9 @@ if [ -z $STATEMNT ]; then
[ "$xcatdebugmode" > "0" ] && logger -t xcat -p debug "saving $NEWROOT/var/lib/dhclient/dhclient-$netif.leases"
done
ifname="$(getarg ifname=)"
netdev="$(getarg netdev=)"
BOOTIF="$(getarg BOOTIF=)"
if [ ! -z "$ifname" ]; then
MACX=${ifname#*:}
ETHX=${ifname%:$MACX*}