mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 03:30:49 +02:00
add btop to SYSTEM menu (#4408)
This commit is contained in:
parent
e70f4b7197
commit
168789c609
@ -15,6 +15,7 @@ TITLE=" ${CHAIN} System Options "
|
|||||||
MENU="" # adds lines to HEIGHT
|
MENU="" # adds lines to HEIGHT
|
||||||
OPTIONS=() # adds lines to HEIGHt + CHOICE_HEIGHT
|
OPTIONS=() # adds lines to HEIGHt + CHOICE_HEIGHT
|
||||||
|
|
||||||
|
OPTIONS+=(BTOP "Monitor system resources with btop")
|
||||||
OPTIONS+=(${network}LOG "Monitor the debug.log for ${CHAIN}")
|
OPTIONS+=(${network}LOG "Monitor the debug.log for ${CHAIN}")
|
||||||
OPTIONS+=(${network}CONF "Edit the bitcoin.conf")
|
OPTIONS+=(${network}CONF "Edit the bitcoin.conf")
|
||||||
|
|
||||||
@ -49,6 +50,13 @@ CHOICE=$(dialog --clear \
|
|||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
|
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
|
BTOP)
|
||||||
|
if ! btop -v; then
|
||||||
|
sudo apt install -y btop
|
||||||
|
fi
|
||||||
|
# run as root to allow signal sending to any process
|
||||||
|
sudo btop
|
||||||
|
;;
|
||||||
${network}LOG)
|
${network}LOG)
|
||||||
if [ ${CHAIN} = signet ]; then
|
if [ ${CHAIN} = signet ]; then
|
||||||
bitcoinlogpath="/mnt/hdd/bitcoin/signet/debug.log"
|
bitcoinlogpath="/mnt/hdd/bitcoin/signet/debug.log"
|
||||||
|
Loading…
Reference in New Issue
Block a user