diff --git a/sbin/ifdown b/sbin/ifdown index bafbde5..be389c7 100644 --- a/sbin/ifdown +++ b/sbin/ifdown @@ -12,11 +12,11 @@ if [ -z "$DEVICE" ]; then exit 1 fi -[ "$NM_CONTROLLED" = "0" ] || exit 0 - [ -r $network_devices/ifcfg-${DEVICE} ] && . $network_devices/ifcfg-${DEVICE} +[ "$NM_CONTROLLED" = "no" ] || exit 0 + if [ -x $network_devices/ifdown-${DEVICE} ]; then $network_devices/ifdown-${DEVICE} else