mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
rename AP to Hachi
This commit is contained in:
parent
474e62d487
commit
0c51fd77fa
1 changed files with 3 additions and 5 deletions
8
setup.sh
8
setup.sh
|
|
@ -250,7 +250,7 @@ sudo systemctl reload NetworkManager
|
||||||
echo "Configuring static IP for wlan0 using NetworkManager..."
|
echo "Configuring static IP for wlan0 using NetworkManager..."
|
||||||
|
|
||||||
# Define the connection name
|
# Define the connection name
|
||||||
CON_NAME="TimeTurner-AP"
|
CON_NAME="Fetch-Hachi-AP"
|
||||||
|
|
||||||
# If a connection with this name already exists, delete it to ensure a clean slate.
|
# If a connection with this name already exists, delete it to ensure a clean slate.
|
||||||
if nmcli c show --active | grep -q "$CON_NAME"; then
|
if nmcli c show --active | grep -q "$CON_NAME"; then
|
||||||
|
|
@ -263,10 +263,8 @@ fi
|
||||||
|
|
||||||
# Create a new connection profile for the Access Point with a static IP.
|
# Create a new connection profile for the Access Point with a static IP.
|
||||||
echo "Creating new '$CON_NAME' connection profile..."
|
echo "Creating new '$CON_NAME' connection profile..."
|
||||||
sudo nmcli c add type wifi ifname wlan0 con-name "$CON_NAME" autoconnect yes ssid "TimeTurner"
|
sudo nmcli c add type wifi ifname wlan0 con-name "$CON_NAME" autoconnect yes ssid "Fetch-Hachi"
|
||||||
sudo nmcli c modify "$CON_NAME" 802-11-wireless.mode ap 802-11-wireless.band bg
|
sudo nmcli c modify "$CON_NAME" 802-11-wireless.mode ap 802-11-wireless.band bg
|
||||||
sudo nmcli c modify "$CON_NAME" 802-11-wireless-security.key-mgmt wpa-psk
|
|
||||||
sudo nmcli c modify "$CON_NAME" 802-11-wireless-security.psk "harry-ron-hermione"
|
|
||||||
sudo nmcli c modify "$CON_NAME" ipv4.method manual ipv4.addresses 10.0.252.1/24
|
sudo nmcli c modify "$CON_NAME" ipv4.method manual ipv4.addresses 10.0.252.1/24
|
||||||
|
|
||||||
# Configure dnsmasq for DHCP
|
# Configure dnsmasq for DHCP
|
||||||
|
|
@ -336,7 +334,7 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "✅ WiFi hotspot and captive portal configured. SSID: TimeTurner, IP: 10.0.252.1"
|
echo "✅ WiFi hotspot and captive portal configured. SSID: Fetch-Hachi, IP: 10.0.252.1"
|
||||||
echo "Clients will be redirected to http://10.0.252.1/static/index.html"
|
echo "Clients will be redirected to http://10.0.252.1/static/index.html"
|
||||||
|
|
||||||
# 1. Build the release binary
|
# 1. Build the release binary
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue