Fix more syntax errors

This commit is contained in:
tux 2025-09-11 15:49:28 +02:00
parent 3c5711e5c1
commit 9a86fe14ad

4
mon
View File

@ -86,10 +86,10 @@ ip link set "$iface" up
if [[ -f "hostapd-wpe.conf" ]]; then if [[ -f "hostapd-wpe.conf" ]]; then
echo "[+] Found hostapd-wpe.conf in the current directory. Using it." echo "[+] Found hostapd-wpe.conf in the current directory. Using it."
# Import channel variable only # Import channel variable only
source <(grep -E '^[[:space:]]*channel[[:space:]]*=' hostapd-wpe.conf source <(grep -E '^[[:space:]]*channel[[:space:]]*=' hostapd-wpe.conf)
else else
echo "[!] hostapd-wpe.conf not found in the current directory. Using the default: /etc/hostapd-wpe/hostapd-wpe.conf" echo "[!] hostapd-wpe.conf not found in the current directory. Using the default: /etc/hostapd-wpe/hostapd-wpe.conf"
source <(grep -E '^[[:space:]]*channel[[:space:]]*=' /etc/hostapd-wpe/hostapd-wpe.conf source <(grep -E '^[[:space:]]*channel[[:space:]]*=' /etc/hostapd-wpe/hostapd-wpe.conf)
fi fi
# Start monitoring # Start monitoring