Browse Source

Merge pull request #12 from vnnkl/addNicerCliScript

WIP: Add nicer cli script
#146
Christian Rotzoll 7 years ago
committed by GitHub
parent
commit
c67f4bee90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      home.admin/00mainMenu.sh
  2. 17
      home.admin/67addAdditionalScripts.sh

6
home.admin/00mainMenu.sh

@ -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

17
home.admin/67addAdditionalScripts.sh

@ -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
Loading…
Cancel
Save