From 3f294d8afc25d2e2ccff25de21060aa983748c26 Mon Sep 17 00:00:00 2001 From: garywill Date: Tue, 2 Jun 2026 21:46:43 +0800 Subject: [PATCH] error msg when hostapd not found --- lnxrouter | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lnxrouter b/lnxrouter index e25cd39..28b0ddf 100755 --- a/lnxrouter +++ b/lnxrouter @@ -1810,7 +1810,10 @@ check_wifi_settings() { fi fi - HOSTAPD=$(command -v hostapd) + HOSTAPD=$(command -v hostapd) || { + echo "ERROR: hostapd not found" >&2 + exit 1 + } if [[ $(get_adapter_kernel_module "${WIFI_IFACE}") =~ ^(8192[cd][ue]|8723a[sue])$ ]]; then if ! strings "$HOSTAPD" | grep -m1 rtl871xdrv > /dev/null 2>&1; then