diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-04-02 13:00:06 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-04-02 13:00:06 +0000 |
commit | add755735aec58378331cb82a6634ca4eb5ee8d7 (patch) | |
tree | a4758510f4e901c813adf85d49f1355bfe62bc5f /package/br2684ctl/files | |
parent | af4c2c041f2226619e105e97bad2c8d1e1c7d892 (diff) | |
download | mtk-20170518-add755735aec58378331cb82a6634ca4eb5ee8d7.zip mtk-20170518-add755735aec58378331cb82a6634ca4eb5ee8d7.tar.gz mtk-20170518-add755735aec58378331cb82a6634ca4eb5ee8d7.tar.bz2 |
Add routed support to br2684
Signed-off-by: Juan I. Gonzalez <juan.i.gonzalez at subdown dot net>
SVN-Revision: 10710
Diffstat (limited to 'package/br2684ctl/files')
-rwxr-xr-x | package/br2684ctl/files/br2684ctl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/br2684ctl/files/br2684ctl b/package/br2684ctl/files/br2684ctl index b121c7a..b31373f 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() { |