Initial commit of my folder

This commit is contained in:
Timothy
2026-03-10 20:41:46 +00:00
parent 37becee76a
commit 7ad88804f3
1225 changed files with 238706 additions and 0 deletions

14
scripts/switch-to-ap.sh Normal file
View 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"

View 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..."