diff options
author | Bill Nottingham <notting@redhat.com> | 2010-03-03 16:28:14 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-03-03 16:28:14 -0500 |
commit | 6a8455a700782b40e474963dc42dda3b1d14fc68 (patch) | |
tree | 3cea343c175a973f95ce16c9855497944fbe925a /sysconfig/network-scripts/ifdown | |
parent | 3a86ed0b2e6c145ec9cbdf49b36e07b5bb13b36d (diff) | |
parent | bab107339ca07cbbef05ac79bd34b19d8a081fe4 (diff) | |
download | initscripts-6a8455a700782b40e474963dc42dda3b1d14fc68.tar initscripts-6a8455a700782b40e474963dc42dda3b1d14fc68.tar.gz initscripts-6a8455a700782b40e474963dc42dda3b1d14fc68.tar.bz2 initscripts-6a8455a700782b40e474963dc42dda3b1d14fc68.tar.xz initscripts-6a8455a700782b40e474963dc42dda3b1d14fc68.zip |
Merge branch 'nm-integration'
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index a0cc0c9e..fd766427 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -16,7 +16,7 @@ CONFIG=$1 exit 1 } -need_config $CONFIG +need_config "${CONFIG}" [ -f "$CONFIG" ] || { echo $"usage: ifdown <device name>" >&2 @@ -41,6 +41,11 @@ then exit 0 fi +if [ "$USE_NM" = "true" ]] && is_nm_active "$DEVICE" ; then + nmcli dev disconnect iface "$DEVICE" + exit $? +fi + if [ -x /sbin/ifdown-pre-local ]; then /sbin/ifdown-pre-local ${DEVICE} fi |