Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and meta-openwrt into a single repository. Components: - poky/ Yocto core framework (BitBake + OE-Core) - meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking) - meta-openwrt/ OpenWrt customization layer - setup-env.sh One-click build environment setup - README.md Project documentation
19 lines
300 B
Bash
19 lines
300 B
Bash
#!/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
|