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:
Jo-Philipp Wich
2016-09-24 14:30:24 +02:00
parent df9efc9497
commit 1c09849f6c
7 changed files with 16 additions and 21 deletions

View File

@@ -16,7 +16,6 @@
include /lib/network
scan_interfaces
local led
config_load system
config_get led led_dsl sysfs
if [ -n "$led" ]; then
@@ -28,18 +27,14 @@ if [ -n "$led" ]; then
esac
fi
local interfaces=`ubus list network.interface.\* | cut -d"." -f3`
local ifc
interfaces=`ubus list network.interface.\* | cut -d"." -f3`
for ifc in $interfaces; do
local up
json_load "$(ifstatus $ifc)"
json_get_var up up
local auto
config_get_bool auto "$ifc" auto 1
local proto
json_get_var proto proto
if [ "$DSL_INTERFACE_STATUS" = "UP" ]; then