aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-02-27 11:06:00 +0000
committerColin Guthrie <colin@mageia.org>2013-07-31 21:39:39 +0100
commitb5546e711fd7b59f2169c1045290e4bab6df4d02 (patch)
tree0dc7d391d9a593262649ae4b7173581110e94171 /sysconfig/network-scripts/ifdown
parente27657c855f51d46623d1a4842c9f6ff3b6c2f00 (diff)
downloadinitscripts-b5546e711fd7b59f2169c1045290e4bab6df4d02.tar
initscripts-b5546e711fd7b59f2169c1045290e4bab6df4d02.tar.gz
initscripts-b5546e711fd7b59f2169c1045290e4bab6df4d02.tar.bz2
initscripts-b5546e711fd7b59f2169c1045290e4bab6df4d02.tar.xz
initscripts-b5546e711fd7b59f2169c1045290e4bab6df4d02.zip
Bail early if NetworkManager is used.distro/mga3
Our initscripts vary quite different from Fedoras in that we will actively start a wpa_supplicant daemon for wireless interfaces As this can cause problems if the NM detection code is flaky (which it is) we really do want to bail early when this is the case https://bugs.mageia.org/show_bug.cgi?id=9028
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 597802bf..34a10c53 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -49,6 +49,8 @@ if [ "$_use_nm" = "true" ]; then
nmcli dev disconnect iface "$DEVICE"
exit $?
fi
+ echo $"$0: interface ${CONFIG} is controlled by NetworkManager; skipping." >&2
+ exit 0
fi
if [ -x /sbin/ifdown-pre-local ]; then