msg="${msg} \n\n Get some testnet coins from https://testnet-faucet.mempool.co"
fi
echo"generating QR code ... please wait"
echo -e "$network:${address}" > qr.txt
/home/admin/XXdisplayQRlcd.sh
# dialog with instructions while QR code is shown on LCD
whiptail --backtitle "Fund your on chain wallet"\
--title "Send ${coininfo}"\
--yes-button "show QR"\
--no-button "continue"\
--yesno "${msg} \n\n Do you want to see the QR-code for ${coininfo}:${address} in this window?"00
--yes-button "DONE"\
--no-button "Show QR Code"\
--yesno "${msg}"00
if[$? -eq 0];then
# display QR code
if[$? -eq 1];then
/home/admin/XXdisplayQR.sh
fi
# clean up
shred qr.txt
rm -f qr.txt
/home/admin/XXdisplayQRlcd_hide.sh
# follow up info
whiptail --backtitle "Fund your on chain wallet"\
--title "What's next?"\
--msgbox "Wait for confirmations. \n\nYou can use info on LCD to check if funds have arrived. \n\nIf you want your lighting node to open channels automatically, activate the 'Autopilot' under 'Activate/Deactivate Services'"00