SVN-Revision: 7024master
parent
edb8f76fbc
commit
7c08cc06a2
@ -0,0 +1,26 @@ |
||||
#!/bin/sh /etc/rc.common |
||||
stop() { |
||||
killall br2684ctl 2>/dev/null >/dev/null |
||||
sleep 1 |
||||
rmmod br2684 |
||||
} |
||||
|
||||
start_daemon() { |
||||
local cfg="$1" |
||||
config_get atmdev "$cfg" atmdev |
||||
config_get unit "$cfg" unit |
||||
config_get vpi "$cfg" vpi |
||||
config_get vci "$cfg" vci |
||||
config_get encaps "$cfg" encaps |
||||
case "$encaps" in |
||||
1|vc) encaps=1;; |
||||
*) encaps=0;; |
||||
esac |
||||
br2684ctl -b -c "$unit" -e "$encaps" -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}" |
||||
} |
||||
|
||||
start() { |
||||
insmod br2684 >/dev/null 2>/dev/null |
||||
config_load network |
||||
config_foreach start_daemon atm-bridge |
||||
} |
@ -0,0 +1,41 @@ |
||||
# Copyright (C) 2006 OpenWrt.org |
||||
|
||||
config interface loopback |
||||
option ifname lo |
||||
option proto static |
||||
option ipaddr 127.0.0.1 |
||||
option netmask 255.0.0.0 |
||||
|
||||
config interface lan |
||||
option ifname eth0 |
||||
option proto static |
||||
option ipaddr 192.168.1.1 |
||||
option netmask 255.255.255.0 |
||||
|
||||
|
||||
|
||||
## Example for ATM bridging. |
||||
## Useful for PPPoE or IP over ATM. Will create 'nas${unit}' |
||||
# |
||||
# config atm-bridge |
||||
# option unit 0 |
||||
# option encaps llc |
||||
# option vpi 8 |
||||
# option vci 35 |
||||
|
||||
|
||||
# config interface wan |
||||
## PPPoE: |
||||
# option ifname nas0 |
||||
# option proto pppoe |
||||
|
||||
## PPPoA: |
||||
# option ifname atm0 |
||||
# option proto pppoa |
||||
# option encaps llc |
||||
# option vpi 8 |
||||
# option vci 35 |
||||
|
||||
## Both: |
||||
# option username "my_username" |
||||
# option password "my_password" |
Loading…
Reference in new issue