Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
if [ "$#" -lt 2 ]; then
|
||||
echo "Missing args: bridge-stp <bridge> <start|stop>" >&2
|
||||
exit 1
|
||||
fi
|
||||
case "$2" in
|
||||
start)
|
||||
/usr/sbin/mstpctl addbridge "$1"
|
||||
exit
|
||||
;;
|
||||
stop)
|
||||
/usr/sbin/mstpctl delbridge "$1"
|
||||
exit
|
||||
;;
|
||||
*)
|
||||
echo "Invalid operation: $2" >&2
|
||||
exit 1
|
||||
esac
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Multiple Spanning Tree Protocol Daemon
|
||||
Before=network-pre.target
|
||||
Wants=network-pre.target
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/mstpd -d -v 2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user