From 242e38c178b6509496452d4a9d9e01024a415e64 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 19 Mar 2009 17:07:51 -0400 Subject: Add support for creating TUN/TAP devices on the fly (#453973, ) --- sysconfig/network-scripts/ifdown-eth | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysconfig/network-scripts/ifdown-eth') diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth index 5d22ba69..62dd354b 100755 --- a/sysconfig/network-scripts/ifdown-eth +++ b/sysconfig/network-scripts/ifdown-eth @@ -118,6 +118,10 @@ if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then fi fi +if [ "${TYPE}" = "Tap" ]; then + tunctl -d "${DEVICE}" >/dev/null +fi + # wait up to 5 seconds for device to actually come down... waited=0 while ! check_device_down ${DEVICE} && [ "$waited" -lt 50 ] ; do -- cgit v1.2.1