From 3afabefa1e63ec98ecad3815e6602de5c58c701e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 22 Mar 2007 16:05:52 -0700 Subject: [PATCH] Simple usermode helper script --- bridge-stp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 bridge-stp diff --git a/bridge-stp b/bridge-stp new file mode 100755 index 0000000..c9ffcc6 --- /dev/null +++ b/bridge-stp @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Script to start/stop spanning tree called from kernel + +RSTPCTL=/sbin/rstpctl + +if [ $# -ne 2 ]; then + echo "Usage: bridge-stp {start|stop}" + exit 1 +fi +BRIDGE=$1 + +case $2 in + start) exec $RSTPCTL rstp $BRIDGE on ;; + stop) exec $RSTPCTL rstp $BRIDGE off ;; + *) + echo "Unknown action:" $2 + echo "Usage: bridge-stp {start|stop}" + exit 1 +esac + + + + + + + -- 2.47.3