Initial commit of my folder
This commit is contained in:
14
scripts/switch-to-ap.sh
Normal file
14
scripts/switch-to-ap.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Switching to AP Mode..."
|
||||
# Stop wpa_supplicant for client mode
|
||||
systemctl stop wpa_supplicant
|
||||
|
||||
# Configure static IP for wlan0 (normally handled by dhcpcd or systemd-networkd)
|
||||
# ifconfig wlan0 192.168.4.1
|
||||
|
||||
# Start AP services
|
||||
systemctl start hostapd
|
||||
systemctl start dnsmasq
|
||||
|
||||
echo "AP Mode active: MPVJ-3B"
|
||||
Reference in New Issue
Block a user