From: Stephen Hemminger Date: Thu, 22 Mar 2007 23:05:52 +0000 (-0700) Subject: Simple usermode helper script X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3afabefa1e63ec98ecad3815e6602de5c58c701e;p=people%2Fms%2Frstp.git Simple usermode helper script --- 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 + + + + + + +