menu formatting

This commit is contained in:
openoms 2021-05-07 15:44:00 +01:00
parent 637cfe8714
commit 3300a1d93f
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65

View file

@ -5,7 +5,7 @@ source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh
# BASIC MENU INFO
HEIGHT=20
HEIGHT=22
WIDTH=57
CHOICE_HEIGHT=14
BACKTITLE="JoininBox GUI $currentJBtag network:$network IP:$localip"
@ -32,10 +32,11 @@ OPTIONS+=(
TOOLS "Extra helper functions and services")
if [ "${runningEnv}" != mynode ]; then
OPTIONS+=(UPDATE "Update JoininBox or JoinMarket")
OPTIONS+=("" "")
OPTIONS+=(SHUTDOWN "Switch off the computer")
OPTIONS+=(RESTART "Restart the computer")
HEIGHT=$((HEIGHT+3))
CHOICE_HEIGHT=$((CHOICE_HEIGHT+3))
HEIGHT=$((HEIGHT+4))
CHOICE_HEIGHT=$((CHOICE_HEIGHT+4))
fi
if [ "${runningEnv}" = raspiblitz ]; then
OPTIONS+=(BLITZ "Switch to the RaspiBlitz menu")
@ -131,7 +132,7 @@ case $CHOICE in
sudo shutdown now
fi
fi;;
BLITZ
BLITZ)
sudo su - admin;;
*)
clear