X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-fwknopd%2Froot%2Fusr%2Fsbin%2Fgen-qr.sh;h=f525c2abd74929b54e4c00443a515be1a5ce8616;hp=abca5d3e5a3016506d0fbcc5332fc2aa06dee4a0;hb=e52a4b5ceab621fb35d1ebd7f838eb6c4c7c06d2;hpb=4b3b9be0983e2e766995bcba95bb09859ab3f83d diff --git a/applications/luci-app-fwknopd/root/usr/sbin/gen-qr.sh b/applications/luci-app-fwknopd/root/usr/sbin/gen-qr.sh index abca5d3e5..f525c2abd 100644 --- a/applications/luci-app-fwknopd/root/usr/sbin/gen-qr.sh +++ b/applications/luci-app-fwknopd/root/usr/sbin/gen-qr.sh @@ -9,18 +9,18 @@ key=$(uci get fwknopd.@access[$entry_num].KEY) hmac_key_base64=$(uci get fwknopd.@access[$entry_num].HMAC_KEY_BASE64) hmac_key=$(uci get fwknopd.@access[$entry_num].HMAC_KEY) -if [ $key_base64 != "" ]; then +if [ "$key_base64" != "" ]; then qr="KEY_BASE64:$key_base64" fi -if [ $key != "" ]; then +if [ "$key" != "" ]; then qr="$qr KEY:$key" fi -if [ $hmac_key_base64 != "" ]; then +if [ "$hmac_key_base64" != "" ]; then qr="$qr HMAC_KEY_BASE64:$hmac_key_base64" fi -if [ $hmac_key != "" ]; then +if [ "$hmac_key" != "" ]; then qr="$qr HMAC_KEY:$hmac_key" fi -qrencode -o - "$qr" +qrencode -t svg -o - "$qr"