• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ustp/scripts/bridge-stp

  1 #!/bin/sh
  2 bridge="$1"
  3 cmd="$2"
  4 
  5 export PATH='/sbin:/usr/sbin:/bin:/usr/bin'
  6 
  7 case "$cmd" in
  8         start) enabled=true ;;
  9         stop) enabled=false ;;
 10         *)
 11                 echo "Usage: $0 <bridge> {start|stop}"
 12                 exit 1
 13         ;;
 14 esac
 15 
 16 ubus call ustp bridge_state '{ "name": "'"$bridge"'", "enabled": '$enabled' }'

This page was automatically generated by LXR 0.3.1.  •  OpenWrt