mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
Merge pull request #12 from vnnkl/addNicerCliScript
WIP: Add nicer cli script
This commit is contained in:
commit
c67f4bee90
@ -55,7 +55,8 @@ else
|
||||
else
|
||||
|
||||
# REGULAR MENU
|
||||
OPTIONS+=(INFO "Show RaspiBlitz Status Screen")
|
||||
OPTIONS+=(INFO "Show RaspiBlitz Status Screen" \
|
||||
ADD "Add lnbalance and lnchannels command")
|
||||
|
||||
fi
|
||||
|
||||
@ -84,6 +85,9 @@ case $CHOICE in
|
||||
read key
|
||||
./00mainMenu.sh;
|
||||
;;
|
||||
ADD) # add scripts
|
||||
./67addAdditionalScripts.sh
|
||||
;;
|
||||
X) # unlock
|
||||
./AAunlockLND.sh
|
||||
./00mainMenu.sh
|
||||
|
17
home.admin/67addAdditionalScripts.sh
Executable file
17
home.admin/67addAdditionalScripts.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user