archboot/usr/bin/archboot-hwsim.sh

11 lines
259 B
Bash
Raw Normal View History

2022-12-13 17:15:30 +01:00
#!/bin/bash
2022-12-13 17:17:17 +01:00
if ! grep -qw mac80211_hwsim /proc/modules; then
2022-12-13 17:15:30 +01:00
modprobe mac80211_hwsim
fi
iwctl ap wlan0 stop
2022-12-13 17:24:32 +01:00
systemctl restart iwd
sleep 2
2022-12-13 17:15:30 +01:00
iwctl device wlan0 set-property Mode ap
iwctl device wlan0 set-property Powered on
iwctl ap wlan0 start "$1" "12345678"