projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d00e66f
)
x86: fix missing led variable warning during boot
author
Petr Štetiar
<ynezz@true.cz>
Sun, 23 Jun 2019 13:18:43 +0000
(15:18 +0200)
committer
Petr Štetiar
<ynezz@true.cz>
Tue, 25 Jun 2019 14:12:22 +0000
(14:12 +0000)
Fixes following warning during the boot:
WARNING: Variable 'led' does not exist or is not an array/object
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/x86/base-files/etc/diag.sh
patch
|
blob
|
history
diff --git
a/target/linux/x86/base-files/etc/diag.sh
b/target/linux/x86/base-files/etc/diag.sh
index 3af4b235837b85bca7457fe910267bfff28c7264..d043e4f03535468cb29d505a532281f951b21209 100644
(file)
--- a/
target/linux/x86/base-files/etc/diag.sh
+++ b/
target/linux/x86/base-files/etc/diag.sh
@@
-20,6
+20,8
@@
preinit_match_diag_led() {
json_init
json_load "$(cat $CFG)"
json_get_keys keys led
+ json_is_a led object || return
+
json_select led
for key in $keys; do
json_select "$key"