mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
Merge pull request #12 from vnnkl/addNicerCliScript
WIP: Add nicer cli script
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user