Skip to content

Instantly share code, notes, and snippets.

@malted
Created December 20, 2021 20:52
Show Gist options
  • Save malted/177d57ecda4aa05e72d9fc6285e51122 to your computer and use it in GitHub Desktop.
Save malted/177d57ecda4aa05e72d9fc6285e51122 to your computer and use it in GitHub Desktop.
Creates a wifi hotspot
#!/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