mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-29 11:11:47 +01:00
refactor main menu
This commit is contained in:
parent
51f4ac860e
commit
7932957adc
@ -35,27 +35,29 @@ if [ "${rtlWebinterface}" == "on" ]; then
|
||||
TITLE="Webinterface: http://${localip}:3000"
|
||||
fi
|
||||
|
||||
# Basic Options
|
||||
OPTIONS+=(INFO "RaspiBlitz Status Screen" \
|
||||
FUNDING "Fund your on-chain Wallet" \
|
||||
CONNECT "Connect to a Peer" \
|
||||
CHANNEL "Open a Channel with Peer" \
|
||||
SEND "Pay an Invoice/PaymentRequest" \
|
||||
RECEIVE "Create Invoice/PaymentRequest" \
|
||||
SERVICES "Activate/Deactivate Services" \
|
||||
MOBILE "Connect Mobile Wallet" \
|
||||
EXPORT "Macaroons and TLS.cert" \
|
||||
NAME "Change Name/Alias of Node" \
|
||||
PASSWORD "Change Passwords" \
|
||||
CASHOUT "Remove Funds from on-chain Wallet"
|
||||
)
|
||||
|
||||
# dont offer lnbalance/lnchannels on testnet
|
||||
if [ "${chain}" = "main" ]; then
|
||||
OPTIONS+=(lnbalance "Detailed Wallet Balances" \
|
||||
lnchannels "Lightning Channel List")
|
||||
# Put Activated Apps on top
|
||||
if [ "${ElectRS}" == "on" ]; then
|
||||
OPTIONS+=(ELECTRS "Electrum Rust Server")
|
||||
fi
|
||||
|
||||
# Basic Options
|
||||
OPTIONS+=(INFO "RaspiBlitz Status Screen")
|
||||
OPTIONS+=(FUNDING "Fund your on-chain Wallet")
|
||||
OPTIONS+=(CONNECT "Connect to a Peer")
|
||||
OPTIONS+=(CHANNEL "Open a Channel with Peer")
|
||||
if [ "${chain}" = "main" ]; then
|
||||
OPTIONS+=(lnbalance "Detailed Wallet Balances")
|
||||
OPTIONS+=(lnchannels "Lightning Channel List")
|
||||
fi
|
||||
OPTIONS+=(SEND "Pay an Invoice/PaymentRequest")
|
||||
OPTIONS+=(RECEIVE "Create Invoice/PaymentRequest")
|
||||
OPTIONS+=(SERVICES "Activate/Deactivate Services")
|
||||
OPTIONS+=(MOBILE "Connect Mobile Wallet")
|
||||
OPTIONS+=(EXPORT "Macaroons and TLS.cert")
|
||||
OPTIONS+=(NAME "Change Name/Alias of Node")
|
||||
OPTIONS+=(PASSWORD "Change Passwords")
|
||||
OPTIONS+=(CASHOUT "Remove Funds from LND")
|
||||
|
||||
# Depending Options
|
||||
openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net listchannels 2>/dev/null | jq '.[] | length')
|
||||
if [ ${#openChannels} -gt 0 ] && [ ${openChannels} -gt 0 ]; then
|
||||
@ -66,10 +68,6 @@ if [ "${runBehindTor}" == "on" ]; then
|
||||
OPTIONS+=(TOR "Tor Service options")
|
||||
fi
|
||||
|
||||
if [ "${ElectRS}" == "on" ]; then
|
||||
OPTIONS+=(ELECTRS "Electrum Rust Server")
|
||||
fi
|
||||
|
||||
if [ "${touchscreen}" == "1" ]; then
|
||||
OPTIONS+=(SCREEN "Touchscreen Calibration")
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user