setup-ip: fallback to legacy if nmcli is no present
This commit is contained in:
parent
b02dd6a768
commit
fef261499b
@ -202,7 +202,7 @@ if [ -n "$INTERFACE" ]; then
|
|||||||
/sbin/ethtool -K "$INTERFACE" tx off
|
/sbin/ethtool -K "$INTERFACE" tx off
|
||||||
|
|
||||||
# If NetworkManager is enabled, let it configure the network
|
# If NetworkManager is enabled, let it configure the network
|
||||||
if qsvc network-manager ; then
|
if qsvc network-manager && [ -e /usr/bin/nmcli ]; then
|
||||||
configure_network_nm "$MAC" "$INTERFACE" "$ip" "$ip6" "$netmask" "$netmask6" "$gateway" "$gateway6" "$primary_dns" "$secondary_dns"
|
configure_network_nm "$MAC" "$INTERFACE" "$ip" "$ip6" "$netmask" "$netmask6" "$gateway" "$gateway6" "$primary_dns" "$secondary_dns"
|
||||||
else
|
else
|
||||||
configure_network "$MAC" "$INTERFACE" "$ip" "$ip6" "$netmask" "$netmask6" "$gateway" "$gateway6" "$primary_dns" "$secondary_dns"
|
configure_network "$MAC" "$INTERFACE" "$ip" "$ip6" "$netmask" "$netmask6" "$gateway" "$gateway6" "$primary_dns" "$secondary_dns"
|
||||||
|
Loading…
Reference in New Issue
Block a user