From 9b3a3b512686b09b4f5ceebc530cf53c0806fefd Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Thu, 17 Apr 2008 15:31:37 +0000 Subject: [PATCH] Create .acl file first --- factory/setup-link | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/factory/setup-link b/factory/setup-link index ba8cb42..1eedfab 100755 --- a/factory/setup-link +++ b/factory/setup-link @@ -37,7 +37,8 @@ iptables -t mangle -A FORWARD -o $BRIDGE -j MARK --set-mark $SLICEID ### Create "grab link" script GRAB=/vsys/grab-$ETUN0 -rm -f $GRAB $GRAB.acl +echo $SLICE > $GRAB.acl +rm -f $GRAB cat > $GRAB < /sys/class/net/$ETUN0/new_ns_pid EOF chmod +x $GRAB -sleep 1 -echo $SLICE > $GRAB.acl ### Create "delete link" script DELETE=/vsys/delete-$ETUN0 -rm -f $DELETE $DELETE.acl +echo $SLICE > $DELETE.acl +rm -f $DELETE cat > $DELETE < $DELETE.acl -- 2.43.0