mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
inteno-netmodes: change conflicting function name
This commit is contained in:
parent
b16e181651
commit
1ac87df83f
3 changed files with 4 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ case "$curmode" in
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
[ "$repeaterready" == "1" ] || return
|
[ "$repeaterready" == "1" ] || return
|
||||||
if [ "$(get_ip_type $ipaddr)" == "private" ]; then
|
if [ "$(netmode_get_ip_type $ipaddr)" == "private" ]; then
|
||||||
wificontrol_takes_over || switch_netmode repeater
|
wificontrol_takes_over || switch_netmode repeater
|
||||||
else
|
else
|
||||||
switch_netmode router
|
switch_netmode router
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
"F*"
|
"F*"
|
||||||
],
|
],
|
||||||
"uplink_band" : 'a',
|
"uplink_band" : 'a',
|
||||||
|
"downlink_band" : 'a b',
|
||||||
"credentials" : 1,
|
"credentials" : 1,
|
||||||
"reboot" : 0
|
"reboot" : 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,8 @@ wait_for_netmode_handler() {
|
||||||
sleep $tm
|
sleep $tm
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
get_ip_type() {
|
|
||||||
|
netmode_get_ip_type() {
|
||||||
[ -n "$(echo $1 | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ] && echo "private" || echo "public"
|
[ -n "$(echo $1 | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ] && echo "private" || echo "public"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue