mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-15 19:01:44 +00:00
Use network settings from the command line (#1980)
This commit is contained in:
@ -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*}
|
||||
|
Reference in New Issue
Block a user