SYSTEM menu fixes

This commit is contained in:
openoms 2021-07-18 20:07:07 +01:00
parent 6d82b93faf
commit 7ca6b68cb7
3 changed files with 6 additions and 4 deletions

View file

@ -263,7 +263,7 @@ case $CHOICE in
/home/admin/99connectMenu.sh
;;
SYSTEM)
/home/admin/99systemMenu.sh
/home/admin/99systemMenu.sh ${chain}net
;;
SCREEN)
dialog --title 'Touchscreen Calibration' --msgbox 'Choose OK and then follow the instructions on touchscreen for calibration.\n\nBest is to use a stylus for accurate touchscreen interaction.' 9 48

View file

@ -14,9 +14,11 @@ fi
source /mnt/hdd/raspiblitz.conf
# CHAIN is signet | testnet | mainnet
if [ $# -gt 0 ] && [ $1 != ${chain}net ];then
nonDefaultChain=1
if [ $# -gt 0 ]; then
CHAIN=$1
if [ $1 != ${chain}net ];then
nonDefaultChain=1
fi
else
nonDefaultChain=0
CHAIN=${chain}net

View file

@ -22,7 +22,7 @@ OPTIONS+=(${network}CONF "Edit the bitcoin.conf")
OPTIONS+=(LNDLOG "Monitor the lnd.log for ${CHAIN}")
OPTIONS+=(LNDCONF "Edit the lnd.conf for ${CHAIN}")
if grep "${netprefix}cln=on" /mnt/hdd/raspiblitz.conf;then
if grep "^${netprefix}cln=on" /mnt/hdd/raspiblitz.conf;then
OPTIONS+=(CLNLOG "Monitor the CLN log for ${CHAIN}")
OPTIONS+=(CLNCONF "Edit the CLN config for ${CHAIN}")
HEIGHT=$((HEIGHT+2))