From: Michael Tremer Date: Wed, 23 Jul 2025 16:00:29 +0000 (+0200) Subject: hostapd: Allow to adjust the debug level X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b60363da83f115ba5272a60a45bedfd44894bdef;p=ipfire-2.x.git hostapd: Allow to adjust the debug level Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/packages/hostapd b/src/initscripts/packages/hostapd index ef4fb3b76..39507cd09 100644 --- a/src/initscripts/packages/hostapd +++ b/src/initscripts/packages/hostapd @@ -683,8 +683,10 @@ case "${1}" in ) # Enable debugging? - if [ -n "${DEBUG}" ]; then - args+=( "-ddd" ) + if [ -n "${DEBUG}" ] && [[ "${DEBUG}" =~ ^[0-9]+$ ]]; then + for (( i = 0; i < DEBUG; i++ )); do + args+=( "-d" ) + done fi boot_mesg "Starting hostapd... "