mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-15 12:50:37 +02:00
menu formatting
This commit is contained in:
parent
637cfe8714
commit
3300a1d93f
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue