summaryrefslogtreecommitdiffstats
path: root/package/br2684ctl/files
diff options
context:
space:
mode:
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 b121c7a4a..b31373ffc 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() {