From add755735aec58378331cb82a6634ca4eb5ee8d7 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 2 Apr 2008 13:00:06 +0000 Subject: Add routed support to br2684 Signed-off-by: Juan I. Gonzalez SVN-Revision: 10710 --- package/br2684ctl/files/br2684ctl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'package/br2684ctl/files') 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() { -- cgit v1.1