error msg when hostapd not found

This commit is contained in:
garywill
2026-06-02 21:46:43 +08:00
parent 16b504e9f9
commit 3f294d8afc
+4 -1
View File
@@ -1810,7 +1810,10 @@ check_wifi_settings() {
fi fi
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 [[ $(get_adapter_kernel_module "${WIFI_IFACE}") =~ ^(8192[cd][ue]|8723a[sue])$ ]]; then
if ! strings "$HOSTAPD" | grep -m1 rtl871xdrv > /dev/null 2>&1; then if ! strings "$HOSTAPD" | grep -m1 rtl871xdrv > /dev/null 2>&1; then