mirror of
https://github.com/garywill/linux-router.git
synced 2026-11-29 21:18:33 +00:00
error msg when hostapd not found
This commit is contained in:
1 parent
16b504e9f9
commit
3f294d8afc
1 file changed
+4
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user