summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-10 14:40:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-10 14:40:55 +0000
commitf2b0ae86983705c98a50ae845403e67c9c412f4d (patch)
tree937d3f3b0515b4a05e1bef91d2d791f5e7dcf678
parent47ecb5dfd20d817cd9e8a070f3d673cbfcafacf1 (diff)
downloadmtk-20170518-f2b0ae86983705c98a50ae845403e67c9c412f4d.zip
mtk-20170518-f2b0ae86983705c98a50ae845403e67c9c412f4d.tar.gz
mtk-20170518-f2b0ae86983705c98a50ae845403e67c9c412f4d.tar.bz2
br2684ctl: add atm-bridge disabled option
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47830
-rwxr-xr-xpackage/network/utils/linux-atm/files/br2684ctl6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/utils/linux-atm/files/br2684ctl b/package/network/utils/linux-atm/files/br2684ctl
index 6331e4e..3d12227 100755
--- a/package/network/utils/linux-atm/files/br2684ctl
+++ b/package/network/utils/linux-atm/files/br2684ctl
@@ -6,7 +6,11 @@ USE_PROCD=1
start_daemon() {
local cfg="$1"
- local atmdev
+ local atmdev disabled
+
+ config_get_bool disabled "$cfg" disabled 0
+ [ "$disabled" -eq 1 ] && return
+
config_get atmdev "$cfg" atmdev 0
local unit