mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-17 09:41:38 +01:00
inteno-netmodes: switch to extender mode if behind non inteno priva IP
This commit is contained in:
parent
05ee1c51ad
commit
724ee411fc
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue