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
|
||||
}
|
||||
|
||||
# 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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user