Browse Source

stream line wallet select

master
Christian Rotzoll 6 years ago
parent
commit
3ee2a279ae
  1. 93
      home.admin/97addMobileWallet.sh

93
home.admin/97addMobileWallet.sh

@ -54,55 +54,52 @@ CHOICE=$(whiptail --clear --title "Choose Mobile Wallet" --menu "" 15 50 6 "${OP
clear clear
case $CHOICE in case $CHOICE in
CLOSE) CLOSE)
exit 1; exit 1;
;; ;;
SHANGO_IOS) SHANGO_IOS)
echo "https://testflight.apple.com/join/WwCjFnS8" > qr.txt echo "https://testflight.apple.com/join/WwCjFnS8" > qr.txt
./XXdisplayLCD.sh /home/admin/assets/install_shango.jpg ./XXdisplayLCD.sh /home/admin/assets/install_shango.jpg
whiptail --title "Install Testflight and Shango on your iOS device" \ whiptail --title "Install Testflight and Shango on your iOS device" \
--yes-button "show link as QR" \ --yes-button "continue" \
--no-button "continue" \ --no-button "link as QR code" \
--yesno "At the moment this app is in public beta testing:\n\nhttps://testflight.apple.com/join/WwCjFnS8" 20 60 --yesno "At the moment this app is in public beta testing:\n\nhttps://testflight.apple.com/join/WwCjFnS8\n\nJoin testing and follow all instructions." 10 60
if [ $? -eq 0 ]; then if [ $? -eq 1 ]; then
/home/admin/XXdisplayQR.sh /home/admin/XXdisplayQR.sh
fi fi
shred qr.txt
shred qr.txt rm -f qr.txt
rm -f qr.txt /home/admin/XXdisplayQRlcd_hide.sh
/home/admin/XXdisplayQRlcd_hide.sh
./97addMobileWalletShango.sh
./97addMobileWalletShango.sh exit 1;
exit 1; ;;
;;
SHANGO_ANDROID) SHANGO_ANDROID)
#echo "https://play.google.com/apps/testing/com.shango" > qr.txt echo "market://details?id=com.shango" > qr.txt
echo "market://details?id=com.shango" > qr.txt ./XXdisplayQRlcd.sh
./XXdisplayQRlcd.sh whiptail --title "Install Shango on your Android Phone" \
whiptail --title "Install Shango on your Android Phone" \ --yes-button "continue" \
--yes-button "show link as QR" \ --no-button "link as QR code" \
--no-button "continue" \ --yesno "At the moment this app is in public beta testing:\n\nhttps://play.google.com/apps/testing/com.shango" 10 60
--yesno "At the moment this app is in public beta testing:\n\nhttps://play.google.com/apps/testing/com.shango \n\nDo you want to see a QR code with an Playstore link?" 20 60
if [ $? -eq 1 ]; then
if [ $? -eq 0 ]; then /home/admin/XXdisplayQR.sh
/home/admin/XXdisplayQR.sh fi
fi shred qr.txt
rm -f qr.txt
shred qr.txt /home/admin/XXdisplayQRlcd_hide.sh
rm -f qr.txt
/home/admin/XXdisplayQRlcd_hide.sh ./97addMobileWalletShango.sh
exit 1;
./97addMobileWalletShango.sh ;;
exit 1; ZAP)
;; ./97addMobileWalletZap.sh
ZAP) exit 1;
./97addMobileWalletZap.sh ;;
exit 1; ZEUS)
;; ./97addMobileWalletZeus.sh
ZEUS) exit 1;
./97addMobileWalletZeus.sh ;;
exit 1;
;;
esac esac

Loading…
Cancel
Save