summaryrefslogtreecommitdiff
path: root/package/br2684ctl/files
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-04-02 13:00:06 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-04-02 13:00:06 +0000
commitea69cda1d999824a532f6ea58deb11c1777ff8a7 (patch)
treed732a03a24c812fe26d0e322a5b531a1d212d471 /package/br2684ctl/files
parentd8a1a7c53e3cb7d71d2955e56d30f976ac07a773 (diff)
Add routed support to br2684
Signed-off-by: Juan I. Gonzalez <juan.i.gonzalez at subdown dot net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10710 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/br2684ctl/files')
-rwxr-xr-xpackage/br2684ctl/files/br2684ctl7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/br2684ctl/files/br2684ctl b/package/br2684ctl/files/br2684ctl
index b121c7a4a5..b31373ffc5 100755
--- a/package/br2684ctl/files/br2684ctl
+++ b/package/br2684ctl/files/br2684ctl
@@ -14,11 +14,16 @@ start_daemon() {
config_get vpi "$cfg" vpi
config_get vci "$cfg" vci
config_get encaps "$cfg" encaps
+ config_get payload "cfg" payload
case "$encaps" in
1|vc) encaps=1;;
*) encaps=0;;
esac
- br2684ctl -b -c "$unit" -e "$encaps" -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}"
+ case "$payload" in
+ 1|bridged) payload=1;;
+ *) payload=0;;
+ esac
+ br2684ctl -b -c "$unit" -e "$encaps" -p "$payload" -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}"
}
start() {