mwan3: remove duplicated global enable check
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 25 Dec 2018 17:25:38 +0000 (18:25 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 25 Dec 2018 17:25:38 +0000 (18:25 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/sbin/mwan3

index 206e30ab4e327d759df7b4ef37abd98ac133fd87..6aee3db0c0bc68cbb037b829332641dfb3f65621 100755 (executable)
@@ -61,12 +61,6 @@ ifup()
                echo "Too many arguments. Usage: mwan3 ifup <interface>" && 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