Initial commit of my folder
This commit is contained in:
14
scripts/switch-to-client.sh
Normal file
14
scripts/switch-to-client.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Switching to Client Mode..."
|
||||
# Stop AP services
|
||||
systemctl stop hostapd
|
||||
systemctl stop dnsmasq
|
||||
|
||||
# Start wpa_supplicant
|
||||
systemctl start wpa_supplicant
|
||||
|
||||
# Normally would trigger a re-scan or wait for IP
|
||||
# dhclient wlan0
|
||||
|
||||
echo "Client Mode active. Connecting to configured SSID..."
|
||||
Reference in New Issue
Block a user