mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 12:06:36 +02:00
chaning parameter order
This commit is contained in:
@@ -26,7 +26,19 @@ source <(/home/admin/_cache.sh get \
|
||||
BTCRPCexplorer \
|
||||
)
|
||||
|
||||
# PARAMETER 1: forcing view on a lightning implementation
|
||||
# PARAMETER 1: forcing view on a given network
|
||||
PARAMETER_CHAIN=$2
|
||||
if [ "${PARAMETER_CHAIN}" == "mainnet" ]; then
|
||||
chain="main"
|
||||
fi
|
||||
if [ "${PARAMETER_CHAIN}" == "testnet" ]; then
|
||||
chain="test"
|
||||
fi
|
||||
if [ "${PARAMETER_CHAIN}" == "signet" ]; then
|
||||
chain="sig"
|
||||
fi
|
||||
|
||||
# PARAMETER 2: forcing view on a lightning implementation
|
||||
PARAMETER_LIGHTNING=$1
|
||||
if [ "${PARAMETER_LIGHTNING}" == "lnd" ]; then
|
||||
lightning="lnd"
|
||||
@@ -38,17 +50,7 @@ if [ "${PARAMETER_LIGHTNING}" == "none" ]; then
|
||||
lightning=""
|
||||
fi
|
||||
|
||||
# PARAMETER 2: forcing view on a given network
|
||||
PARAMETER_CHAIN=$2
|
||||
if [ "${PARAMETER_CHAIN}" == "mainnet" ]; then
|
||||
chain="main"
|
||||
fi
|
||||
if [ "${PARAMETER_CHAIN}" == "testnet" ]; then
|
||||
chain="test"
|
||||
fi
|
||||
if [ "${PARAMETER_CHAIN}" == "signet" ]; then
|
||||
chain="sig"
|
||||
fi
|
||||
|
||||
|
||||
# generate netprefix
|
||||
netprefix=${chain:0:1}
|
||||
|
@@ -134,7 +134,7 @@ while :
|
||||
fi
|
||||
|
||||
# no special case - show status display
|
||||
/home/admin/00infoBlitz.sh $lightning ${chain}net
|
||||
/home/admin/00infoBlitz.sh ${chain}net $lightning
|
||||
sleep 5
|
||||
|
||||
done
|
||||
|
@@ -198,7 +198,7 @@ case $CHOICE in
|
||||
do
|
||||
|
||||
# show the same info as on LCD screen
|
||||
/home/admin/00infoBlitz.sh ${lightning} ${chain}net
|
||||
/home/admin/00infoBlitz.sh ${chain}net ${lightning}
|
||||
|
||||
# wait 6 seconds for user exiting loop
|
||||
echo ""
|
||||
|
@@ -193,7 +193,7 @@ function status() {
|
||||
while :
|
||||
do
|
||||
# show the same info as on LCD screen
|
||||
# 00infoBlitz.sh <cl|lnd> <testnet|mainnet|signet>
|
||||
# 00infoBlitz.sh <testnet|mainnet|signet> <cl|lnd>
|
||||
/home/admin/00infoBlitz.sh $1 $2
|
||||
# wait 6 seconds for user exiting loop
|
||||
#echo
|
||||
|
Reference in New Issue
Block a user