aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-04-09 12:33:28 +0200
committerLukas Nykryn <lnykryn@redhat.com>2013-04-09 12:33:28 +0200
commitc82961615e76578f289516262846f41bc7641db0 (patch)
treed467f1a4763d6ef84edf9ba4bae6fac337df0e27 /sysconfig/network-scripts/ifdown-eth
parent37c54313cdc16da566592c5e86b91f9a13009dda (diff)
downloadinitscripts-c82961615e76578f289516262846f41bc7641db0.tar
initscripts-c82961615e76578f289516262846f41bc7641db0.tar.gz
initscripts-c82961615e76578f289516262846f41bc7641db0.tar.bz2
initscripts-c82961615e76578f289516262846f41bc7641db0.tar.xz
initscripts-c82961615e76578f289516262846f41bc7641db0.zip
replace tunctl with ip tuntap (#947875)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index 1d9e7151..99eb1a0a 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -135,7 +135,9 @@ if [ -n "${BRIDGE}" ] && [ -x /usr/sbin/brctl ]; then
fi
if [ "${TYPE}" = "Tap" ]; then
- tunctl -d "${DEVICE}" >/dev/null
+ TUNMODE="mode tap"
+ [[ ${DEVICE} == tun* ]] && TUNMODE="mode tun"
+ ip tuntap del ${TUNMODE} dev ${DEVICE} >/dev/null
fi
# wait up to 5 seconds for device to actually come down...