Skip to content

Instantly share code, notes, and snippets.

@dpavlin
Created August 21, 2013 12:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpavlin/6293661 to your computer and use it in GitHub Desktop.
Save dpavlin/6293661 to your computer and use it in GitHub Desktop.
Generate #QR code for #WIFI network
#/bin/sh -xe
# Generate QR code for WIFI network
test -z "$1" && echo -n "ssid: " && read ssid || ssid=$1
test -z "$2" && echo -n "password: " && read pass || pass=$2
qrencode -o /tmp/qr-${ssid}.png "WIFI:S:$ssid;T:WPA;P:$pass;" ; qiv -m /tmp/qr-${ssid}.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment