Pārlūkot izejas kodu

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

Frédéric Pierret (fepitre) 4 gadi atpakaļ
vecāks
revīzija
fef261499b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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"