add fixes from whiterussian,
[openwrt.git] / openwrt / package / linux-atm / files / br2684.init
1 #!/bin/sh
2 . /etc/functions.sh
3 [ -e /etc/config/network ] && . /etc/config/network
4
5 killall br2684ctl 2>&- >&-
6 [ "$(nvram get pppoe_atm)" = 1 ] && {
7 VPI=$(nvram get atm_vpi)
8 VCI=$(nvram get atm_vci)
9 case "$(nvram get atm_encaps)" in
10 0|vc)
11 ENCAPS=0
12 ;;
13 1|llc)
14 ENCAPS=1
15 ;;
16 *)
17 ENCAPS=0
18 ;;
19 esac
20 insmod br2684
21 br2684ctl -c0 -e${ENCAPS} -a${VPI:-8}.${VCI:-35} &
22 }
This page took 0.057641 seconds and 5 git commands to generate.