archboot/usr/bin/archboot-hwsim.sh

10 lines
253 B
Bash
Raw Normal View History

2022-12-13 17:15:30 +01:00
#!/bin/bash
if ! [[ grep -qw mac80211_hwsim /proc/modules ]]; then
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"