_commands: add bos and jm, show in menu (#1600)

This commit is contained in:
openoms 2020-09-28 20:32:40 +01:00 committed by GitHub
parent f075ec4336
commit 0be87d3459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 13 deletions

View File

@ -111,9 +111,9 @@ function status() {
sudo -u pi /home/admin/00infoLCD.sh --pause 0
}
# command: balance
# command: bos
# 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
sudo su - bos
else
@ -122,9 +122,9 @@ function balance() {
fi
}
# command: jmarket
# command: jm
# 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
sudo su - joinmarket
else

View File

@ -16,11 +16,12 @@ fi
# show info menu
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
To start type: 'sudo su bos' in the command line.\n
Then see 'bos help' for options.
" 9 75
" 10 75
exit 0
fi

View File

@ -27,13 +27,13 @@ fi
# show info menu
if [ "$1" = "menu" ]; then
whiptail --title " JoinMarket info " --msgbox "Usage:
https://github.com/openoms/bitcoin-tutorials/blob/master/joinmarket/README.md\n
Start to use by logging in to the 'joinmarket' user with:
sudo su joinmarket\n
whiptail --title " JoinMarket info " --msgbox "
Type: 'jm' in the command line to swith to the dedicated user and start the JoininBox menu.
Notes on usage:
https://github.com/openoms/bitcoin-tutorials/blob/master/joinmarket/README.md
Can log in directly with the 'joinmarket' user via ssh.
The user password is the PASSWORD_B.
" 14 81
" 13 81
exit 0
fi