From b74a708dadb1c29c05f11fb69214a488b404ddc9 Mon Sep 17 00:00:00 2001 From: Colin Kuebler Date: Sun, 17 Nov 2019 13:07:55 -0500 Subject: [PATCH] Added check for blacklist file known to cause kernel panic in hostapd, fixes #373 --- scripts/setup_checks.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/setup_checks.sh b/scripts/setup_checks.sh index d32ae67..c0c629a 100755 --- a/scripts/setup_checks.sh +++ b/scripts/setup_checks.sh @@ -82,6 +82,18 @@ check_port () { fi } +check_blacklist () { + if [ -e /etc/modprobe.d/blacklist-rtl8192cu.conf ]; then + echo "Detected /etc/modprobe.d/blacklist-rtl8192cu.conf" + echo "This has been known to cause kernel panic in hostapd" + read -p "Do you wish to remove this file? [y/N] " -n 1 -r + echo + if [[ $REPLY =~ ^[Yy]$ ]]; then + sudo rm /etc/modprobe.d/blacklist-rtl8192cu.conf + fi + fi +} + check_eula check_config check_port udp 53 "resolve DNS queries" @@ -92,4 +104,5 @@ check_port udp 6666 "detect unencrypted Tuya firmware" check_port udp 6667 "detect encrypted Tuya firmware" check_port tcp 1883 "run MQTT" check_port tcp 8886 "run MQTTS" +check_blacklist