2 # Copyright (C) 2006 OpenWrt.org
5 DIR
="/proc/switch/$CONFIG_SECTION/vlan/$1"
6 [ -d "$DIR" ] ||
return 0
8 config_get ports
"$CONFIG_SECTION" "vlan$1"
9 echo "$ports" > "$DIR/ports"
16 [ -n "$2" -a -d "/proc/switch/$2" ] && {
17 echo 1 > "/proc/switch/$2/reset"
18 echo 1 > "/proc/switch/$2/enable"
19 echo 1 > "/proc/switch/$2/enable_vlan"
22 vlan
*) setup_switch_vlan
"${1##vlan}";;
28 option_cb
() { return 0; }
This page took 0.042598 seconds and 5 git commands to generate.