From 724ee411fcb9ce6cbcd165f0bb9dc033560f790a Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Wed, 14 Jun 2017 17:44:12 +0200 Subject: [PATCH] inteno-netmodes: switch to extender mode if behind non inteno priva IP --- inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-handler | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-handler b/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-handler index 16b990ce7..2217ed030 100755 --- a/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-handler +++ b/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-handler @@ -66,13 +66,12 @@ switch_mode() { wifi reload nodat ubus call router.network reload ubus call leds set '{"state" : "normal"}' - } test_ip() { if [ -n "$(echo $ip | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ]; then # private IP - #switch_mode + switch_mode set_disabled 1 else # public IP