Created
August 21, 2013 12:08
-
-
Save dpavlin/6293661 to your computer and use it in GitHub Desktop.
Generate #QR code for #WIFI network
This file contains hidden or 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/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