package/kernel: move NLS modules to their own file & submenu
[openwrt.git] / package / admswconfig / files / admswswitch.sh
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3
4 setup_switch_vlan() {
5 config_get ports "$CONFIG_SECTION" "eth$1"
6 ports=`echo "$ports"| sed s/" "/""/g`
7 admswconfig eth$1 ${ports}c
8 }
9
10 setup_switch() {
11 config_cb() {
12 case "$1" in
13 switch)
14 option_cb() {
15 case "$1" in
16 eth*) setup_switch_vlan "${1##eth}";;
17 esac
18 }
19 ;;
20 *)
21 option_cb() { return 0; }
22 ;;
23 esac
24 }
25 config_load network
26 }
This page took 0.042796 seconds and 5 git commands to generate.