summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2018-01-08 13:12:20 +0100
committerMathias Kresin <dev@kresin.me>2018-01-10 08:08:53 +0100
commit1b1388f6404e6c3b0734de0a3dfbea63d69f677e (patch)
tree534c6d8f80c3a3462ab9125ed02d1732a4afbfff /package/base-files/files/lib
parent57157618d4c25b3f08adf28bad5b24d26b3a368a (diff)
downloadmtk-20170518-1b1388f6404e6c3b0734de0a3dfbea63d69f677e.zip
mtk-20170518-1b1388f6404e6c3b0734de0a3dfbea63d69f677e.tar.gz
mtk-20170518-1b1388f6404e6c3b0734de0a3dfbea63d69f677e.tar.bz2
linux-atm: add br2684ctl option to specify the netdev name
Add the uci option nameprefix to specifc a target netdev name. Patch the br2684ctl code to accept and set a netdev name via commandline parameters. It allows to use the same netdev name for ATM and PTM lines on lantiq xdsl hardware. Signed-off-by: Martin Schiller <ms@dev.tdt.de> Signed-off-by: Mathis Kresin <dev@kresin.me>
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-xpackage/base-files/files/lib/functions/uci-defaults.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 82ac1d2..3126fe6 100755
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -319,6 +319,7 @@ ucidef_add_atm_bridge() {
local vci="$2"
local encaps="$3"
local payload="$4"
+ local nameprefix="$5"
json_select_object dsl
json_select_object atmbridge
@@ -326,6 +327,7 @@ ucidef_add_atm_bridge() {
json_add_int vci "$vci"
json_add_string encaps "$encaps"
json_add_string payload "$payload"
+ json_add_string nameprefix "$nameprefix"
json_select ..
json_select ..
}