Created
December 20, 2021 20:52
-
-
Save malted/177d57ecda4aa05e72d9fc6285e51122 to your computer and use it in GitHub Desktop.
Creates a wifi hotspot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo rm /tmp/create_ap.all.lock | |
sudo lnxrouter --ap wlp1s0 <SSID> -p <PASSWORD> | |
function finish { | |
sudo ip link set wlp1s0 state UP | |
} | |
trap finish EXIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment