Merge pull request #12 from vnnkl/addNicerCliScript

WIP: Add nicer cli script
This commit is contained in:
Christian Rotzoll
2018-07-27 10:45:17 +02:00
committed by GitHub
2 changed files with 22 additions and 1 deletions

View File

@@ -55,7 +55,8 @@ else
else else
# REGULAR MENU # REGULAR MENU
OPTIONS+=(INFO "Show RaspiBlitz Status Screen") OPTIONS+=(INFO "Show RaspiBlitz Status Screen" \
ADD "Add lnbalance and lnchannels command")
fi fi
@@ -84,6 +85,9 @@ case $CHOICE in
read key read key
./00mainMenu.sh; ./00mainMenu.sh;
;; ;;
ADD) # add scripts
./67addAdditionalScripts.sh
;;
X) # unlock X) # unlock
./AAunlockLND.sh ./AAunlockLND.sh
./00mainMenu.sh ./00mainMenu.sh

View File

@@ -0,0 +1,17 @@
echo "Creating the command lnbalance as well as lnchannels which will give you a nicer output"
cd
mkdir /home/admin/tmpScriptDL
cd /home/admin/tmpScriptDL
wget https://raw.githubusercontent.com/Stadicus/guides/master/raspibolt/resources/lnbalance
wget https://raw.githubusercontent.com/Stadicus/guides/master/raspibolt/resources/lnchannels
chmod +x lnbalance
chmod +x lnchannels
sudo cp lnchannels /usr/local/bin
sudo cp lnbalance /usr/local/bin
echo "Done. Let's try them out"
cd
rm -r /home/admin/tmpScriptDL
echo "Output of lnbalance:"
lnbalance
echo "Output of lnchannels:"
lnchannels