projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb0665
)
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>
Mon, 6 Jan 2020 07:40:06 +0000
(08:40 +0100)
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>
(cherry picked from commit
5816caad26ae294f0adb4ed07ed53dcba7277c33
)
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"