3 if [ "$1" != "" ]; then
7 key_base64
=$
(uci
-q get fwknopd.@access
[$entry_num].KEY_BASE64
)
8 key
=$
(uci
-q get fwknopd.@access
[$entry_num].KEY
)
9 hmac_key_base64
=$
(uci
-q get fwknopd.@access
[$entry_num].HMAC_KEY_BASE64
)
10 hmac_key
=$
(uci
-q get fwknopd.@access
[$entry_num].HMAC_KEY
)
12 if [ "$key_base64" != "" ]; then
13 qr
="KEY_BASE64:$key_base64"
15 if [ "$key" != "" ]; then
19 if [ "$hmac_key_base64" != "" ]; then
20 qr
="$qr HMAC_KEY_BASE64:$hmac_key_base64"
22 if [ "$hmac_key" != "" ]; then
23 qr
="$qr HMAC_KEY:$hmac_key"
26 qrencode
-t svg
-I -o - "$qr"