mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-22 22:25:46 +01:00
additional script refactor
This commit is contained in:
parent
c67f4bee90
commit
7d23510320
3 changed files with 25 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## default menu settings
|
||||
HEIGHT=9
|
||||
HEIGHT=11
|
||||
WIDTH=64
|
||||
CHOICE_HEIGHT=4
|
||||
BACKTITLE="RaspiBlitz"
|
||||
|
@ -14,7 +14,6 @@ setupState=0;
|
|||
if [ -f "/home/admin/.setup" ]; then
|
||||
setupState=$( cat /home/admin/.setup )
|
||||
fi
|
||||
|
||||
if [ ${setupState} -eq 0 ]; then
|
||||
|
||||
# start setup
|
||||
|
@ -55,8 +54,9 @@ else
|
|||
else
|
||||
|
||||
# REGULAR MENU
|
||||
OPTIONS+=(INFO "Show RaspiBlitz Status Screen" \
|
||||
ADD "Add lnbalance and lnchannels command")
|
||||
OPTIONS+=(INFO "RaspiBlitz Status Screen" \
|
||||
lnbalance "Detailed Wallet Balances" \
|
||||
lnchannels "Lightning Channel List")
|
||||
|
||||
fi
|
||||
|
||||
|
@ -82,14 +82,23 @@ case $CHOICE in
|
|||
INFO)
|
||||
./00infoBlitz.sh
|
||||
echo "Screen is not updating ... press ENTER to continue."
|
||||
read key
|
||||
./00mainMenu.sh;
|
||||
read key
|
||||
./00mainMenu.sh
|
||||
;;
|
||||
lnbalance)
|
||||
lnbalance
|
||||
echo "Press ENTER to return to main menu."
|
||||
read key
|
||||
./00mainMenu.sh
|
||||
;;
|
||||
lnchannels)
|
||||
lnchannels
|
||||
echo "Press ENTER to return to main menu."
|
||||
read key
|
||||
./00mainMenu.sh
|
||||
;;
|
||||
ADD) # add scripts
|
||||
./67addAdditionalScripts.sh
|
||||
;;
|
||||
X) # unlock
|
||||
./AAunlockLND.sh
|
||||
./00mainMenu.sh
|
||||
./00mainMenu.sh
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/sh
|
||||
echo ""
|
||||
|
||||
# add bonus scripts
|
||||
./91addBonus.sh
|
||||
|
||||
###### SWAP
|
||||
echo "*** SWAP file ***"
|
||||
swapExists=$(swapon -s | grep -c /mnt/hdd/swapfile)
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_67_additional-scripts.md
|
||||
|
||||
echo "*** Adding: raspibolt_67_additional-scripts.md"
|
||||
echo "Creating the command lnbalance as well as lnchannels which will give you a nicer output"
|
||||
cd
|
||||
mkdir /home/admin/tmpScriptDL
|
Loading…
Add table
Reference in a new issue