archboot/usr/bin/archboot-hwsim.sh
2022-12-13 17:15:30 +01:00

9 lines
253 B
Bash
Executable file

#!/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"