From: Michael Tremer Date: Wed, 23 Jul 2025 13:51:10 +0000 (+0200) Subject: hostapd: Allow to enable debugging X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db9262fdabfef244b5da09623e1e79754b7935ad;p=ipfire-2.x.git hostapd: Allow to enable debugging Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/packages/hostapd b/src/initscripts/packages/hostapd index 53d77545f..86d977f80 100644 --- a/src/initscripts/packages/hostapd +++ b/src/initscripts/packages/hostapd @@ -446,8 +446,22 @@ case "${1}" in exit 1 fi + # Compose the command line + args=( + /usr/bin/hostapd + -s + -B + /etc/hostapd.conf + -i "${interface}" + ) + + # Enable debugging? + if [ -n "${DEBUG}" ]; then + args+=( "-ddd" ) + fi + boot_mesg "Starting hostapd... " - loadproc /usr/bin/hostapd -s -B /etc/hostapd.conf -i "${interface}" + loadproc "${args[@]}" ;; stop)