mirror of https://github.com/aredn/aredn.git
bugfix: fix scripts to current standards
local can only be used in a function
This commit is contained in:
parent
b7cacc3d18
commit
1fc7a926ab
|
@ -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
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
. /lib/ar71xx.sh
|
||||
|
||||
local boardtype
|
||||
boardtype=$(ar71xx_board_name)
|
||||
|
||||
echo "$boardtype"
|
||||
|
|
Loading…
Reference in New Issue