diff options
author | Bill Nottingham <notting@redhat.com> | 2009-03-19 17:07:51 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-03-19 17:07:51 -0400 |
commit | 242e38c178b6509496452d4a9d9e01024a415e64 (patch) | |
tree | 0bde093d565f4dad9b4491bb307d4d8d495eed27 /sysconfig/network-scripts/ifdown-eth | |
parent | 8d96a60141a556e25e251d817f072aca7e4d4e8d (diff) | |
download | initscripts-242e38c178b6509496452d4a9d9e01024a415e64.tar initscripts-242e38c178b6509496452d4a9d9e01024a415e64.tar.gz initscripts-242e38c178b6509496452d4a9d9e01024a415e64.tar.bz2 initscripts-242e38c178b6509496452d4a9d9e01024a415e64.tar.xz initscripts-242e38c178b6509496452d4a9d9e01024a415e64.zip |
Add support for creating TUN/TAP devices on the fly (#453973, <scott@zahna.com>)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-eth | 4 |
1 files changed, 4 insertions, 0 deletions
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 |