netmode: adapt to inteno -> iopsys change

This commit is contained in:
Sukru Senli 2018-10-06 19:24:05 +02:00
parent 6b49a934b9
commit 87e9ebb0d3
10 changed files with 20 additions and 20 deletions

View file

@ -18,8 +18,8 @@ config interface 'lan'
config interface 'wan'
option type 'anywan'
option proto 'dhcp'
option vendorid '$HARDWAREID-INTENO'
option hostname 'Inteno_$MAC4'
option hostname 'iopsys-$MAC'
option vendorid '$HARDWAREID'
option ifname 'ptm0.1 atm0.1 $WAN.1'
option ipv6 '1'

View file

@ -42,7 +42,7 @@ config wifi-iface
option device 'wl0'
option network 'lan'
option mode 'ap'
option ssid 'Inteno-$BSSID4'
option ssid 'iopsys-$BSSID4'
option encryption 'psk2'
option cipher 'auto'
option key '$WPAKEY'
@ -82,7 +82,7 @@ config wifi-iface
option device 'wl1'
option network 'lan'
option mode 'ap'
option ssid 'Inteno-$BSSID4'
option ssid 'iopsys-$BSSID4'
option encryption 'mixed-psk'
option cipher 'auto'
option key '$WPAKEY'

View file

@ -13,7 +13,7 @@ config interface 'wan'
option type 'bridge'
option ifname 'eth0.2 eth0.1'
option proto 'dhcp'
option hostname 'Inteno-$BSSID4'
option hostname 'iopsys-$MAC'
option reqopts '66 67 128 224'
option igmp_snooping '0'

View file

@ -23,7 +23,7 @@ config wifi-iface
option device ra0
option network wan
option mode ap
option ssid Inteno-$BSSID4
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option ifname ra0
@ -42,7 +42,7 @@ config wifi-iface
option device rai0
option network wan
option mode ap
option ssid Inteno-$BSSID4
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option ifname rai0
@ -52,7 +52,7 @@ config wifi-iface
option device rai0
option network wan
option mode wet
option ssid Inteno-$BSSID4
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option ifname apclii0

View file

@ -18,8 +18,8 @@ config interface 'lan'
config interface 'wan'
option type 'anywan'
option proto 'dhcp'
option vendorid '$HARDWAREID-INTENO'
option hostname 'Inteno_$MAC4'
option hostname 'iopsys-$MAC'
option vendorid '$HARDWAREID'
option ifname 'ptm0.1 atm0.1 $WAN.1'
option ipv6 '1'

View file

@ -42,7 +42,7 @@ config wifi-iface
option device 'wl0'
option network 'lan'
option mode 'ap'
option ssid 'Inteno-$BSSID4'
option ssid 'iopsys-$BSSID4'
option encryption 'psk2'
option cipher 'auto'
option key '$WPAKEY'
@ -82,7 +82,7 @@ config wifi-iface
option device 'wl1'
option network 'lan'
option mode 'ap'
option ssid 'Inteno-$BSSID4'
option ssid 'iopsys-$BSSID4'
option encryption 'mixed-psk'
option cipher 'auto'
option key '$WPAKEY'

View file

@ -21,8 +21,8 @@ config device 'lan_dev'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option hostname '$IOPHOSTNAME-$MAC'
option vendorid '$HARDWAREID-INTENO'
option hostname 'iopsys-$MAC'
option vendorid '$HARDWAREID'
option reqopts '66 67 128 224'
config device 'wan_dev'

View file

@ -23,7 +23,7 @@ config wifi-iface
option device ra0
option network lan
option mode ap
option ssid Inteno-$BSSID4
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option wps_pbc 1
@ -42,7 +42,7 @@ config wifi-iface
option device rai0
option network lan
option mode ap
option ssid Inteno-$BSSID4
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option wps_pbc 1

View file

@ -34,7 +34,7 @@ disable_firewall() {
/etc/init.d/firewall reload
}
is_inteno_macaddr()
is_known_macaddr()
{
macaddr=$1

View file

@ -19,7 +19,7 @@ timed_check() {
done
}
is_inteno_macaddr()
is_known_macaddr()
{
macaddr=$1
@ -50,8 +50,8 @@ while true ; do
json_get_var ipaddr ipaddr
json_get_var network network "lan"
if is_inteno_macaddr $macaddr; then
logger -s -p user.info -t $0 "netmode-client-detect: a new Inteno device detected on '$network' network (MACAddr:$macaddr IPAddr:$ipaddr)" >/dev/console
if is_known_macaddr $macaddr; then
logger -s -p user.info -t $0 "netmode-client-detect: a new known device detected on '$network' network (MACAddr:$macaddr IPAddr:$ipaddr)" >/dev/console
ubus call repeater get_creds '{"network":"'$network'","file":"/tmp/wificontrol.txt"}'
/sbin/wificontrol --router --destination $ipaddr
fi