add lndmanage to the main menu

This commit is contained in:
rootzoll 2020-01-26 22:30:26 +01:00
parent 92d1c63d97
commit 6614d216d3
3 changed files with 19 additions and 6 deletions

View file

@ -39,6 +39,9 @@ fi
if [ "${ElectRS}" == "on" ]; then if [ "${ElectRS}" == "on" ]; then
OPTIONS+=(ELECTRS "Electrum Rust Server") OPTIONS+=(ELECTRS "Electrum Rust Server")
fi fi
if [ "${lndmanage}" == "on" ]; then
OPTIONS+=(lndmanage "Electrum Rust Server")
fi
# Basic Options # Basic Options
OPTIONS+=(INFO "RaspiBlitz Status Screen") OPTIONS+=(INFO "RaspiBlitz Status Screen")
@ -130,6 +133,10 @@ case $CHOICE in
/home/admin/config.scripts/bonus.electrs.sh menu /home/admin/config.scripts/bonus.electrs.sh menu
./00mainMenu.sh ./00mainMenu.sh
;; ;;
lndmanage)
/home/admin/config.scripts/bonus.lndmanage.sh menu
./00mainMenu.sh
;;
lnchannels) lnchannels)
lnchannels ${network} lnchannels ${network}
echo "Press ENTER to return to main menu." echo "Press ENTER to return to main menu."

View file

@ -560,11 +560,7 @@ if [ "${lndmanage}" != "${choice}" ]; then
anychange=1 anychange=1
sudo -u admin /home/admin/config.scripts/bonus.lndmanage.sh ${choice} sudo -u admin /home/admin/config.scripts/bonus.lndmanage.sh ${choice}
if [ "${choice}" = "on" ]; then if [ "${choice}" = "on" ]; then
whiptail --title " Installed lndmanage " --msgbox "\ sudo -u admin /home/admin/config.scripts/bonus.lndmanage.sh menu
Usage: https://github.com/bitromortac/lndmanage/blob/master/README.md
Have at least one channel active to run it without error.
To start type: 'manage' in the command line.
" 9 75
fi fi
else else
echo "lndmanage setting unchanged." echo "lndmanage setting unchanged."

View file

@ -3,7 +3,7 @@
# command info # command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "config script to install or uninstall lndmanage" echo "config script to install or uninstall lndmanage"
echo "bonus.lndmanage.sh [on|off]" echo "bonus.lndmanage.sh [on|off|menu]"
exit 1 exit 1
fi fi
@ -14,6 +14,16 @@ if ! grep -Eq "^lndmanage=" /mnt/hdd/raspiblitz.conf; then
echo "lndmanage=off" >> /mnt/hdd/raspiblitz.conf echo "lndmanage=off" >> /mnt/hdd/raspiblitz.conf
fi fi
# show info menu
if [ "$1" = "menu" ]; then
dialog --title " Info lndmanage " --msgbox "\n\
Usage: https://github.com/bitromortac/lndmanage/blob/master/README.md
Have at least one channel active to run it without error.\n
To start type: 'manage' in the command line.
" 9 75
exit 0
fi
# install # install
if [ "$1" = "1" ] || [ "$1" = "on" ]; then if [ "$1" = "1" ] || [ "$1" = "on" ]; then