repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make getpeername() return the original socket address which before it was intercepted
[hband-tools.git]
/
user-tools
/
qrwifi
blob
beec81391b07e661d5febe8016db6af3db101927
1
#!/bin/bash
2
3
true
<<EOF
4
=pod
5
6
=head1 NAME
7
8
qrwifi - Generate a string, used in WiFi-setup QR codes, containing a hotspot name and password
9
10
=cut
11
12
EOF
13
14
15
set -e
16
set -u
17
18
if
[
$#
-lt
2
]
19
then
20
echo
"Usage:
$0
[<SSID>] [<PSK>]"
>&
2
21
false
22
fi
23
24
is_hidden
=
false
25
26
echo -n
"WIFI:T:WPA;S:
${1?enter SSID argument}
;P:
${2?enter PSK argument}
;H:
$is_hidden
;"