bugfix: fix scripts to current standards

local can only be used in a function
This commit is contained in:
Andrew Cameron 2018-03-29 22:00:19 -07:00 committed by Joe AE6XE
parent b7cacc3d18
commit 1fc7a926ab
2 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,7 @@ then
i=0
while true; do
uci -q get network.\@switch\[$i\] > /dev/null
local status=$?
status=$?
if [ $status == 1 ]
then
break
@ -24,7 +24,7 @@ then
i=0
while true; do
uci -q get network.\@switch_vlan\[$i\] > /dev/null
local status=$?
status=$?
if [ $status == 1 ]
then
break
@ -40,7 +40,7 @@ then
i=0
while true; do
uci -q get network.\@switch_port\[$i\] > /dev/null
local status=$?
status=$?
if [ $status == 1 ]
then
break
@ -75,7 +75,7 @@ then
i=0
while true; do
uci -q get system.led_lan$i > /dev/null
local status=$?
status=$?
if [ $status == 1 ]
then
break

View File

@ -7,7 +7,6 @@
. /lib/ar71xx.sh
local boardtype
boardtype=$(ar71xx_board_name)
echo "$boardtype"