aboutsummaryrefslogtreecommitdiffstats
path: root/main/vde2/vde2.post-down
diff options
context:
space:
mode:
Diffstat (limited to 'main/vde2/vde2.post-down')
-rw-r--r--main/vde2/vde2.post-down37
1 files changed, 0 insertions, 37 deletions
diff --git a/main/vde2/vde2.post-down b/main/vde2/vde2.post-down
deleted file mode 100644
index be5f5b31d88..00000000000
--- a/main/vde2/vde2.post-down
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-VDE_SWITCH=/usr/bin/vde_switch
-SLIRPVDE=/usr/bin/slirpvde
-
-# this is not an interesting stanza for us
-if [ -z "$IF_VDE2_SWITCH" -a -z "$IF_VDE2_PLUG" -a -z "$IF_VDE2_SLIRP" ]; then
- exit 0
-fi
-
-PIDFILE="/var/run/vde2/$IFACE-plug.pid"
-CTLFILE="/var/run/vde2/$IFACE.ctl"
-if [ -f $PIDFILE ]; then
- start-stop-daemon --stop --quiet --pidfile $PIDFILE
- rm -f $PIDFILE
-fi
-
-PIDFILE="/var/run/vde2/$IFACE-slirp.pid"
-if [ -f $PIDFILE ]; then
- start-stop-daemon --stop --quiet --pidfile $PIDFILE \
- --exec $SLIRPVDE
- rm -f $PIDFILE
-fi
-
-PIDFILE="/var/run/vde2/$IFACE.pid"
-CTLDIR="/var/run/vde2/$IFACE.ctl"
-if [ -f $PIDFILE ]; then
- start-stop-daemon --stop --quiet --pidfile $PIDFILE \
- --exec $VDE_SWITCH
- rm -f $PIDFILE
-
- # set the tap interface to non-persistant, see #568363
- vde_tunctl -b -d $IFACE 1>/dev/null
-fi
-
-rm -rf $CTLDIR
-rm -f $CTLDIR.*