From 0829f66116fce075984fedc2b9e078e2b3a934bb Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Mon, 20 Jan 2025 10:59:50 +0100 Subject: [PATCH] Improve debug option handling --- src/run_openwrt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/run_openwrt.sh b/src/run_openwrt.sh index c73c26b..182bfdd 100755 --- a/src/run_openwrt.sh +++ b/src/run_openwrt.sh @@ -265,14 +265,14 @@ PCI_ARGS="${PCI_1_ARGS}" info "Booting image using $VERS..." # See qemu command if debug is enabled -if [[ -z "${DEBUG}" ]]; then - DEBUG_ARGS="" -else +if [[ $DEBUG = "true" ]]; then set -x # Show final qemu command # Not working as expected grub output will delete previous log messages #DEBUG_ARGS="-serial stdio" # Show OpenWrt kernel message in container log DEBUG_ARGS="" +else + DEBUG_ARGS="" fi #************************ FINAL BOOTING ************************