treewide: remove bad local shell variable declarations
Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -175,9 +175,9 @@ detect_by_model() {
|
||||
}
|
||||
|
||||
|
||||
local model="$(sed -ne 's/^machine[ \t]*: //p' /proc/cpuinfo)"
|
||||
local boardtype="$(nvram get boardtype)"
|
||||
local boardnum="$(nvram get boardnum)"
|
||||
model="$(sed -ne 's/^machine[ \t]*: //p' /proc/cpuinfo)"
|
||||
boardtype="$(nvram get boardtype)"
|
||||
boardnum="$(nvram get boardnum)"
|
||||
|
||||
board_config_update
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@ uci show network | grep "\.vlan=0"
|
||||
|
||||
logger -t network "network config is invalid, creating new one"
|
||||
|
||||
local lan_proto="$(uci -q get network.lan.proto)"
|
||||
local lan_ipaddr="$(uci -q get network.lan.ipaddr)"
|
||||
local lan_netmask="$(uci -q get network.lan.netmask)"
|
||||
local wan_proto="$(uci -q get network.wan.proto)"
|
||||
local wan_ipaddr="$(uci -q get network.wan.ipaddr)"
|
||||
local wan_netmask="$(uci -q get network.wan.netmask)"
|
||||
lan_proto="$(uci -q get network.lan.proto)"
|
||||
lan_ipaddr="$(uci -q get network.lan.ipaddr)"
|
||||
lan_netmask="$(uci -q get network.lan.netmask)"
|
||||
wan_proto="$(uci -q get network.wan.proto)"
|
||||
wan_ipaddr="$(uci -q get network.wan.ipaddr)"
|
||||
wan_netmask="$(uci -q get network.wan.netmask)"
|
||||
|
||||
echo "" > /etc/config/network
|
||||
config_generate
|
||||
|
||||
Reference in New Issue
Block a user