mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
_commands: add bos and jm, show in menu (#1600)
This commit is contained in:
parent
f075ec4336
commit
0be87d3459
@ -111,9 +111,9 @@ function status() {
|
|||||||
sudo -u pi /home/admin/00infoLCD.sh --pause 0
|
sudo -u pi /home/admin/00infoLCD.sh --pause 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# command: balance
|
# command: bos
|
||||||
# switch to the bos user for Balance of Satoshis
|
# switch to the bos user for Balance of Satoshis
|
||||||
function balance() {
|
function bos() {
|
||||||
if [ $(grep -c "bos=on" < /mnt/hdd/raspiblitz.conf) -eq 1 ]; then
|
if [ $(grep -c "bos=on" < /mnt/hdd/raspiblitz.conf) -eq 1 ]; then
|
||||||
sudo su - bos
|
sudo su - bos
|
||||||
else
|
else
|
||||||
@ -122,9 +122,9 @@ function balance() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# command: jmarket
|
# command: jm
|
||||||
# switch to the joinmarket user for the JoininBox menu
|
# switch to the joinmarket user for the JoininBox menu
|
||||||
function jmarket() {
|
function jm() {
|
||||||
if [ $(grep -c "joinmarket=on" < /mnt/hdd/raspiblitz.conf) -eq 1 ]; then
|
if [ $(grep -c "joinmarket=on" < /mnt/hdd/raspiblitz.conf) -eq 1 ]; then
|
||||||
sudo su - joinmarket
|
sudo su - joinmarket
|
||||||
else
|
else
|
||||||
|
@ -16,11 +16,12 @@ fi
|
|||||||
|
|
||||||
# show info menu
|
# show info menu
|
||||||
if [ "$1" = "menu" ]; then
|
if [ "$1" = "menu" ]; then
|
||||||
dialog --title " Info Balance of Satoshis " --msgbox "\n\
|
dialog --title " Info Balance of Satoshis " --msgbox "
|
||||||
|
Balance of Satoshis is a command line tool.
|
||||||
|
Type: 'bos' in the command line to switch to the dedicated user.
|
||||||
|
Then see 'bos help' for the options.
|
||||||
Usage: https://github.com/alexbosworth/balanceofsatoshis/blob/master/README.md
|
Usage: https://github.com/alexbosworth/balanceofsatoshis/blob/master/README.md
|
||||||
To start type: 'sudo su bos' in the command line.\n
|
" 10 75
|
||||||
Then see 'bos help' for options.
|
|
||||||
" 9 75
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -27,13 +27,13 @@ fi
|
|||||||
|
|
||||||
# show info menu
|
# show info menu
|
||||||
if [ "$1" = "menu" ]; then
|
if [ "$1" = "menu" ]; then
|
||||||
whiptail --title " JoinMarket info " --msgbox "Usage:
|
whiptail --title " JoinMarket info " --msgbox "
|
||||||
https://github.com/openoms/bitcoin-tutorials/blob/master/joinmarket/README.md\n
|
Type: 'jm' in the command line to swith to the dedicated user and start the JoininBox menu.
|
||||||
Start to use by logging in to the 'joinmarket' user with:
|
Notes on usage:
|
||||||
sudo su joinmarket\n
|
https://github.com/openoms/bitcoin-tutorials/blob/master/joinmarket/README.md
|
||||||
Can log in directly with the 'joinmarket' user via ssh.
|
Can log in directly with the 'joinmarket' user via ssh.
|
||||||
The user password is the PASSWORD_B.
|
The user password is the PASSWORD_B.
|
||||||
" 14 81
|
" 13 81
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user