From 1f7b945a916a115c45e77c1bf737e2d8594a5f09 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Fri, 11 Apr 2008 19:07:58 +0000 Subject: [PATCH] Dynamically create delete-link script --- factory/setup-link | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/factory/setup-link b/factory/setup-link index 4facabc..5851ee6 100755 --- a/factory/setup-link +++ b/factory/setup-link @@ -47,4 +47,27 @@ EOF chmod +x $GRAB echo $SLICE > $GRAB.acl +### Create "delete link" script +DELETE=/vsys/delete-$ETUN0 +cat > $DELETE < /sys/module/etun/parameters/delif + +# Get rid of bridge +ifconfig $BRIDGE down +brctl delbr $BRIDGE + +# Get rid of EGRE tunnel +ip tunnel del $EGRE + +# Clean up files +rm $GRAB +rm $DELETE + +EOF +chmod +x $DELETE +echo $SLICE > $DELETE.acl + -- 2.43.0