mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3: remove duplicated global enable check
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -61,12 +61,6 @@ ifup()
|
|||||||
echo "Too many arguments. Usage: mwan3 ifup <interface>" && exit 0
|
echo "Too many arguments. Usage: mwan3 ifup <interface>" && exit 0
|
||||||
fi
|
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)
|
status=$(ubus -S call network.interface.$1 status)
|
||||||
[ -n "$status" ] && {
|
[ -n "$status" ] && {
|
||||||
json_load $status
|
json_load $status
|
||||||
@@ -75,7 +69,6 @@ ifup()
|
|||||||
|
|
||||||
config_get enabled "$1" enabled 0
|
config_get enabled "$1" enabled 0
|
||||||
|
|
||||||
|
|
||||||
if [ "$up" = "1" ] \
|
if [ "$up" = "1" ] \
|
||||||
&& [ -n "$l3_device" ] \
|
&& [ -n "$l3_device" ] \
|
||||||
&& [ "$enabled" = "1" ]; then
|
&& [ "$enabled" = "1" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user