add btop to SYSTEM menu (#4408)

This commit is contained in:
openoms 2024-02-14 14:00:12 +00:00 committed by GitHub
parent e70f4b7197
commit 168789c609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@ TITLE=" ${CHAIN} System Options "
MENU="" # adds lines to 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}CONF "Edit the bitcoin.conf")
@ -49,6 +50,13 @@ CHOICE=$(dialog --clear \
2>&1 >/dev/tty)
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)
if [ ${CHAIN} = signet ]; then
bitcoinlogpath="/mnt/hdd/bitcoin/signet/debug.log"