15 lines
324 B
Bash
15 lines
324 B
Bash
#!/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"
|