Browse Source

setup-ip: fallback to legacy if nmcli is no present

Frédéric Pierret (fepitre) 4 years ago
parent
commit
fef261499b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      network/setup-ip

+ 1 - 1
network/setup-ip

@@ -202,7 +202,7 @@ if [ -n "$INTERFACE" ]; then
                 /sbin/ethtool -K "$INTERFACE" tx off
 
                 # 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"
                 else
                     configure_network "$MAC" "$INTERFACE" "$ip" "$ip6" "$netmask" "$netmask6" "$gateway" "$gateway6" "$primary_dns" "$secondary_dns"