mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
use CHAIN in CLN and LND menu
This commit is contained in:
parent
61e5887bb5
commit
59895c673d
@ -5,12 +5,6 @@ echo "# get raspiblitz config"
|
|||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
if [ $# -gt 0 ];then
|
|
||||||
NETWORK=$1
|
|
||||||
else
|
|
||||||
NETWORK=${chain}net
|
|
||||||
fi
|
|
||||||
|
|
||||||
source <(/home/admin/config.scripts/network.aliases.sh getvars cln $1)
|
source <(/home/admin/config.scripts/network.aliases.sh getvars cln $1)
|
||||||
|
|
||||||
# get the local network IP to be displayed on the LCD
|
# get the local network IP to be displayed on the LCD
|
||||||
@ -63,25 +57,25 @@ CHOICE=$(dialog --clear \
|
|||||||
|
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
SUMMARY)
|
SUMMARY)
|
||||||
/home/admin/config.scripts/cln-plugin.summary.sh $NETWORK
|
/home/admin/config.scripts/cln-plugin.summary.sh $CHAIN
|
||||||
;;
|
;;
|
||||||
PEERING)
|
PEERING)
|
||||||
/home/admin/BBconnectPeer.sh cln $NETWORK
|
/home/admin/BBconnectPeer.sh cln $CHAIN
|
||||||
;;
|
;;
|
||||||
FUNDING)
|
FUNDING)
|
||||||
/home/admin/BBfundWallet.sh cln $NETWORK
|
/home/admin/BBfundWallet.sh cln $CHAIN
|
||||||
;;
|
;;
|
||||||
CASHOUT)
|
CASHOUT)
|
||||||
/home/admin/BBcashoutWallet.sh
|
/home/admin/BBcashoutWallet.sh cln $CHAIN
|
||||||
;;
|
;;
|
||||||
CHANNEL)
|
CHANNEL)
|
||||||
/home/admin/BBopenChannel.sh cln $NETWORK
|
/home/admin/BBopenChannel.sh cln $CHAIN
|
||||||
;;
|
;;
|
||||||
SEND)
|
SEND)
|
||||||
/home/admin/BBpayInvoice.sh cln $NETWORK
|
/home/admin/BBpayInvoice.sh cln $CHAIN
|
||||||
;;
|
;;
|
||||||
RECEIVE)
|
RECEIVE)
|
||||||
/home/admin/BBcreateInvoice.sh cln $NETWORK
|
/home/admin/BBcreateInvoice.sh cln $CHAIN
|
||||||
;;
|
;;
|
||||||
NAME)
|
NAME)
|
||||||
sudo /home/admin/config.scripts/lnd.setname.sh
|
sudo /home/admin/config.scripts/lnd.setname.sh
|
||||||
@ -95,7 +89,7 @@ case $CHOICE in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
CLOSEALL)
|
CLOSEALL)
|
||||||
/home/admin/BBcloseAllChannels.sh cln $NETWORK
|
/home/admin/BBcloseAllChannels.sh cln $CHAIN
|
||||||
echo "Press ENTER to return to main menu."
|
echo "Press ENTER to return to main menu."
|
||||||
read key
|
read key
|
||||||
;;
|
;;
|
||||||
|
@ -87,22 +87,22 @@ case $CHOICE in
|
|||||||
read key
|
read key
|
||||||
;;
|
;;
|
||||||
PEERING)
|
PEERING)
|
||||||
/home/admin/BBconnectPeer.sh
|
/home/admin/BBconnectPeer.sh lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
FUNDING)
|
FUNDING)
|
||||||
/home/admin/BBfundWallet.sh
|
/home/admin/BBfundWallet.sh lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
CASHOUT)
|
CASHOUT)
|
||||||
/home/admin/BBcashoutWallet.sh
|
/home/admin/BBcashoutWallet.sh lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
CHANNEL)
|
CHANNEL)
|
||||||
/home/admin/BBopenChannel.sh
|
/home/admin/BBopenChannel.sh lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
SEND)
|
SEND)
|
||||||
/home/admin/BBpayInvoice.sh
|
/home/admin/BBpayInvoice.sh lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
RECEIVE)
|
RECEIVE)
|
||||||
/home/admin/BBcreateInvoice.sh
|
/home/admin/BBcreateInvoice.sh lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
NAME)
|
NAME)
|
||||||
sudo /home/admin/config.scripts/lnd.setname.sh
|
sudo /home/admin/config.scripts/lnd.setname.sh
|
||||||
@ -116,7 +116,7 @@ case $CHOICE in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
CLOSEALL)
|
CLOSEALL)
|
||||||
/home/admin/BBcloseAllChannels.sh
|
/home/admin/BBcloseAllChannels.sh lnd $CHAIN
|
||||||
echo "Press ENTER to return to main menu."
|
echo "Press ENTER to return to main menu."
|
||||||
read key
|
read key
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user