fix: set AP hotspot password to fixed WPA2 PSK "12345678"

Open network was not viable as nmcli generates random password by default.
Use a simple fixed password since the AP is only for short-lived provisioning.

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-16 10:44:26 +08:00
parent 8a6e5b3666
commit 92906bcd4b
2 changed files with 4 additions and 7 deletions

View File

@@ -1,7 +1,4 @@
fix: dnsmasq path detection and WiFi rfkill persistence
fix: set AP hotspot password to fixed WPA2 PSK "12345678"
- dns-hijack.js: replace `which` with multi-path search (/usr/sbin etc.)
since dnsmasq is often not in normal user PATH
- install.sh: auto-enable NetworkManager for WiFi provisioning
- install.sh: unblock WiFi rfkill at install time
- install.sh: create clawd-rfkill.service for persistent boot-time unlock
Open network was not viable as nmcli generates random password by default.
Use a simple fixed password since the AP is only for short-lived provisioning.

View File

@@ -5,7 +5,7 @@ const log = require('./logger');
const AP_SSID_PREFIX = 'ClawBox-';
const AP_IP = '10.42.0.1';
const AP_PASSWORD = ''; // 开放网络,无密码(配网专用,生命周期短)
const AP_PASSWORD = '12345678';
const AP_IFACE = process.env.CLAWD_WIFI_IFACE || '';
const CON_NAME = 'clawd-hotspot';