2005-11-19 03:17:20 +00:00
|
|
|
[ "${INTERFACE%%[0-9]*}" = "atm" ] && {
|
|
|
|
case "$ACTION" in
|
|
|
|
register)
|
2006-04-05 02:09:22 +00:00
|
|
|
[ "$pppoe_atm" = 1 ] && {
|
|
|
|
case "$atm_encaps" in
|
2005-11-19 03:17:20 +00:00
|
|
|
0|vc) ENCAPS=0 ;;
|
|
|
|
1|llc) ENCAPS=1 ;;
|
|
|
|
*) ENCAPS=0 ;;
|
|
|
|
esac
|
|
|
|
insmod br2684 2>&- >&-
|
2006-04-05 02:09:22 +00:00
|
|
|
br2684ctl -c0 -e${ENCAPS} -a${atm_vpi:-8}.${atm_vci:-35} &
|
2005-11-19 03:17:20 +00:00
|
|
|
}
|
|
|
|
;;
|
|
|
|
unregister)
|
|
|
|
killall br2684ctl 2>&- >&-
|
|
|
|
rmmod br2684
|
|
|
|
;;
|
|
|
|
esac
|
2005-08-23 12:29:00 +00:00
|
|
|
}
|