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