3 # Copyright (C) 2011-2012 OpenWrt.org
6 [ -e /etc/config/network ] && exit 0
14 set network.atm='atm-bridge'
15 set network.atm.vpi='$vpi'
16 set network.atm.vci='$vci'
17 set network.atm.encaps='$encaps'
18 set network.atm.payload='$payload'
19 set network.wan='interface'
20 set network.wan.ifname='nas0'
21 set network.wan.proto='pppoe'
22 set network.wan.username='foo'
23 set network.wan.password='bar'
27 . /lib/functions/uci-defaults.sh
28 . /lib/functions/lantiq.sh
30 touch /etc/config/network
32 ucidef_set_interface_loopback
33 ucidef_set_interface_lan 'eth0'
40 board=$(lantiq_board_id)
45 ucidef_set_interface_lan "eth0.1"
46 ucidef_add_switch "eth0" "1" "1"
47 ucidef_add_switch_vlan "eth0" "1" "3 2 1 0 5t"
51 ucidef_set_interface_lan "eth0.1"
52 ucidef_add_switch "eth0" "1" "1"
53 ucidef_add_switch_vlan "eth0" "1" "4 3 2 1 5t"
58 ucidef_set_interface_lan "eth0.1"
59 ucidef_add_switch "eth0" "1" "1"
60 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
64 ucidef_add_switch "eth0" "1" "0"
65 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
70 [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"