From 5816caad26ae294f0adb4ed07ed53dcba7277c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Sun, 23 Jun 2019 15:18:43 +0200 Subject: [PATCH] x86: fix missing led variable warning during boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes following warning during the boot: WARNING: Variable 'led' does not exist or is not an array/object Signed-off-by: Petr Štetiar --- target/linux/x86/base-files/etc/diag.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/x86/base-files/etc/diag.sh b/target/linux/x86/base-files/etc/diag.sh index 3af4b23583..d043e4f035 100644 --- 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"