From: Florian Eckert Date: Tue, 25 Dec 2018 17:25:38 +0000 (+0100) Subject: mwan3: remove duplicated global enable check X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a49d6096357a590b315e3c6a8787c18d0b2e7bca;p=feed%2Fpackages.git mwan3: remove duplicated global enable check Signed-off-by: Florian Eckert --- diff --git a/net/mwan3/files/usr/sbin/mwan3 b/net/mwan3/files/usr/sbin/mwan3 index 206e30ab4e..6aee3db0c0 100755 --- a/net/mwan3/files/usr/sbin/mwan3 +++ b/net/mwan3/files/usr/sbin/mwan3 @@ -61,12 +61,6 @@ ifup() echo "Too many arguments. Usage: mwan3 ifup " && exit 0 fi - config_get_bool enabled globals 'enabled' 0 - [ ${enabled} -gt 0 ] || { - echo "Warning: mwan3 is global disabled. Usage: /etc/init.d/mwan3 start" - exit 0 - } - status=$(ubus -S call network.interface.$1 status) [ -n "$status" ] && { json_load $status @@ -75,7 +69,6 @@ ifup() config_get enabled "$1" enabled 0 - if [ "$up" = "1" ] \ && [ -n "$l3_device" ] \ && [ "$enabled" = "1" ]; then