load switch drivers after ethernet drivers
[openwrt.git] / openwrt / package / linux-atm / files / br2684.init
1 [ "${INTERFACE%%[0-9]*}" = "atm" ] && {
2 case "$ACTION" in
3 register)
4 [ "$(nvram get pppoe_atm)" = 1 ] && {
5 VPI=$(nvram get atm_vpi)
6 VCI=$(nvram get atm_vci)
7 case "$(nvram get atm_encaps)" in
8 0|vc) ENCAPS=0 ;;
9 1|llc) ENCAPS=1 ;;
10 *) ENCAPS=0 ;;
11 esac
12 insmod br2684 2>&- >&-
13 br2684ctl -c0 -e${ENCAPS} -a${VPI:-8}.${VCI:-35} &
14 }
15 ;;
16 unregister)
17 killall br2684ctl 2>&- >&-
18 rmmod br2684
19 ;;
20 esac
21 }
This page took 0.044688 seconds and 5 git commands to generate.