From 22b526ea817ecef432cbf2ac3acf097fb89e1ad4 Mon Sep 17 00:00:00 2001 From: lucca Date: Thu, 9 Jul 2026 19:03:44 -0400 Subject: [PATCH] added quest wap script that doesnt need NM --- quest/setup-network-noNetworkManager.sh | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 quest/setup-network-noNetworkManager.sh diff --git a/quest/setup-network-noNetworkManager.sh b/quest/setup-network-noNetworkManager.sh new file mode 100755 index 0000000..9433ddc --- /dev/null +++ b/quest/setup-network-noNetworkManager.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Ensure the script is run as root +if [ "$EUID" -ne 0 ]; then + echo "[-] Please run as root (su)" + exit 1 +fi + +read -rp "Wireless interface (usually wlan0 or wlan1): " IFACE + +# 1. Clean up old processes +echo "[*] Cleaning up old processes..." +killall hostapd 2>/dev/null + +# 2. Hard reset the wireless interface +echo "[*] Resetting interface $IFACE..." +ip link set "$IFACE" down 2>/dev/null +ip addr flush dev "$IFACE" 2>/dev/null +rfkill unblock wifi 2>/dev/null # Clear any software blocks +sleep 1 # Give hardware a moment to settle +ip link set "$IFACE" up +ip addr add 192.168.38.1/24 dev "$IFACE" + +# 3. Create an OPEN hostapd configuration (No WPA/encryption) +echo "[*] Creating OPEN hostapd configuration..." +cat < /tmp/hostapd.conf +interface=$IFACE +driver=nl80211 +ssid=pihotspot +hw_mode=g +channel=6 +auth_algs=1 +EOF + +# 4. Start the Access Point +echo "[*] Starting hostapd in the background..." +hostapd -B /tmp/hostapd.conf + +echo "[+] Open Hotspot 'pihotspot' is up and reset!" +echo "[+] NetHunter IP: 192.168.38.1" +echo "[*] Ensure your Quest 2 static IP is in the 192.168.38.X range (but not .1)"