add MAINNET menu if not default

This commit is contained in:
openoms
2021-05-23 11:44:35 +01:00
parent 96a1e4a4cb
commit ca82d221de
4 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ fi
OPTIONS+=(INFO "RaspiBlitz Status Screen for ${CHAIN}")
if [ "$testnet" == "on" ]; then
OPTIONS+=(SERVICES "Additional Apps & Services on testnet")
OPTIONS+=(SERVICES "Additional Apps & Services on ${CHAIN}")
HEIGHT=$((HEIGHT+1))
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
fi

View File

@@ -177,7 +177,7 @@ if [ "${testnet}" == "on" ]&&[ ${chain} != test ];then
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
fi
if [ "${mainnet}" == "on" ]&&[ ${chain} != main ];then
if [ ${chain} != main ];then
OPTIONS+=(MAINNET "Mainnet Service Options")
HEIGHT=$((HEIGHT+1))
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))

View File

@@ -373,7 +373,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
isInstalled=$(sudo ls /etc/systemd/system/${chainprefix}${typeprefix}RTL.service 2>/dev/null | grep -c "${chainprefix}${typeprefix}RTL.service")
if [ ${isInstalled} -eq 1 ]; then
echo "# Removing the RTL for ${LNTYPE} ${CHAIN}"
echo "# Removing RTL for ${LNTYPE} ${CHAIN}"
sudo systemctl disable ${chainprefix}${typeprefix}RTL
sudo rm /etc/systemd/system/${chainprefix}${typeprefix}RTL.service
if [ $LNTYPE = cln ];then

View File

@@ -12,7 +12,7 @@ fi
# CHAIN is signet | testnet | mainnet
CHAIN=$2
if [ ${CHAIN} = testnet ]||[ ${CHAIN} = mainnet ];then
echo "# Installing the LND instance on ${CHAIN}"
echo "# Configuring the LND instance on ${CHAIN}"
elif [ ${CHAIN} = signet ]; then
echo "# Signet is not yet supported in LND"
echo "# see https://github.com/lightningnetwork/lnd/issues/5018"