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

View File

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

View File

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