archboot/usr/bin/archboot-hwsim.sh

10 lines
247 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
iwctl restart iwd
iwctl device wlan0 set-property Mode ap
iwctl device wlan0 set-property Powered on
iwctl ap wlan0 start "$1" "12345678"