diff --git a/inteno-netmodes/files/etc/init.d/netmode b/inteno-netmodes/files/etc/init.d/netmode index 16bcb15c4..bb08399f9 100755 --- a/inteno-netmodes/files/etc/init.d/netmode +++ b/inteno-netmodes/files/etc/init.d/netmode @@ -8,7 +8,7 @@ OLD_MODE_FILE=/var/netmodes/old_mode . /usr/share/libubox/jshn.sh -local modedir=$(uci -q get netmode.setup.dir) +modedir=$(uci -q get netmode.setup.dir) [ -n "$modedir" ] || modedir="/etc/netmodes" get_device() { diff --git a/inteno-netmodes/files/sbin/netmode-client-detect b/inteno-netmodes/files/sbin/netmode-client-detect index 7754c9499..a4bfa6aea 100755 --- a/inteno-netmodes/files/sbin/netmode-client-detect +++ b/inteno-netmodes/files/sbin/netmode-client-detect @@ -5,7 +5,10 @@ . /usr/share/libubox/jshn.sh -local action ipaddr macaddr network +action= +ipaddr= +macaddr= +network= timed_check() { while true; do diff --git a/inteno-netmodes/files/sbin/netmode-conf b/inteno-netmodes/files/sbin/netmode-conf index d1e12dd79..af9756c3d 100755 --- a/inteno-netmodes/files/sbin/netmode-conf +++ b/inteno-netmodes/files/sbin/netmode-conf @@ -123,7 +123,8 @@ done json_load "`cat $file`" json_select "wifi_ifaces" -local curmode repmode +curmode="" +repmode="" config_load netmode config_get curmode setup curmode @@ -138,14 +139,20 @@ case $curmode in ;; esac -local apcliband="a" +apcliband="a" case $curmode in *_2g_*) apcliband="b";; esac i=1 -local dummy band ssid key encryption device iface_num +dummy= +band= +ssid= +key= +encryption= +device= +iface_num= while json_get_var dummy $i; do json_select $i @@ -177,8 +184,8 @@ json_load "`cat $file`" json_select "wifi_ifaces" config_load wireless -local b_num=0 -local a_num=0 +b_num=0 +a_num=0 i=1 while json_get_var dummy $i; do diff --git a/inteno-netmodes/files/sbin/netmode-discover b/inteno-netmodes/files/sbin/netmode-discover index 230246d02..220228cd6 100755 --- a/inteno-netmodes/files/sbin/netmode-discover +++ b/inteno-netmodes/files/sbin/netmode-discover @@ -1,7 +1,5 @@ #!/bin/sh -local unlisted mac ipaddr netmask mask - mask_to_cidr() { nbits=0 IFS=.