add extra sanity checks in madwifi
[openwrt.git] / package / br2684ctl / files / br2684ctl
1 #!/bin/sh /etc/rc.common
2 START=50
3
4 stop() {
5 killall br2684ctl 2>/dev/null >/dev/null
6 sleep 1
7 rmmod br2684
8 }
9
10 start_daemon() {
11 local cfg="$1"
12 config_get atmdev "$cfg" atmdev
13 config_get unit "$cfg" unit
14 config_get vpi "$cfg" vpi
15 config_get vci "$cfg" vci
16 config_get encaps "$cfg" encaps
17 case "$encaps" in
18 1|vc) encaps=1;;
19 *) encaps=0;;
20 esac
21 br2684ctl -b -c "$unit" -e "$encaps" -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}"
22 }
23
24 start() {
25 insmod br2684 >/dev/null 2>/dev/null
26 config_load network
27 config_foreach start_daemon atm-bridge
28 }
This page took 0.04138 seconds and 5 git commands to generate.