3 # Copyright (C) 2011-2012 OpenWrt.org
6 [ -e /etc
/config
/network
] && exit 0
14 set network.atm='atm-bridge'
15 set network.atm.unit='0'
16 set network.atm.vpi='$vpi'
17 set network.atm.vci='$vci'
18 set network.atm.encaps='$encaps'
19 set network.atm.payload='$payload'
20 set network.wan='interface'
21 set network.wan.ifname='nas0'
22 set network.wan.proto='pppoe'
23 set network.wan.username='foo'
24 set network.wan.password='bar'
32 set network.adsl='adsl-device'
33 set network.adsl.fwannex='$fwannex'
34 set network.adsl.annex='$annex'
38 .
/lib
/functions
/uci-defaults.sh
41 touch /etc
/config
/network
43 ucidef_set_interface_loopback
44 ucidef_set_interface_lan
'eth0'
50 fwannex
=$
(lantiq_dsl_fwannex
)
51 board
=$
(lantiq_board_name
)
52 dsl
=$
(lantiq_soc_has_adsl
)
55 # annex B with adm6996
57 ucidef_set_interface_lan
"eth0.1"
58 ucidef_add_switch
"eth0" "1" "1"
59 ucidef_add_switch_vlan
"eth0" "1" "1 2 3 4 5t"
65 ucidef_set_interface_lan
"eth0.1"
66 ucidef_add_switch
"eth0" "1" "1"
67 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
71 ARV7525PW|ARV4525PW|
*)
72 set_adsl
"$fwannex" "${fwannex}2p"
76 [ -z "$dsl" ] || set_atm_wan
"$vpi" "$vci" "$encaps" "$payload"