blob: 773895f6e2ca9f6ed513235f7345095e6093b1de [file] [log] [blame]
#!/bin/sh
case "$1" in
start)
if ! is-fiberjack && ! is-spacecast; then
for ifc in br0 br1; do
if [ ! -e "/sys/class/net/$ifc" ]; then
brctl addbr "$ifc"
fi
done
fi
;;
stop)
;;
restart)
"$0" stop
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac