mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 04:37:19 +02:00
rework menu options
This commit is contained in:
@@ -177,8 +177,9 @@ OPTIONS+=(UPDATE "Check/Prepare RaspiBlitz Update")
|
|||||||
OPTIONS+=(REBOOT "Reboot RaspiBlitz")
|
OPTIONS+=(REBOOT "Reboot RaspiBlitz")
|
||||||
OPTIONS+=(OFF "PowerOff RaspiBlitz")
|
OPTIONS+=(OFF "PowerOff RaspiBlitz")
|
||||||
|
|
||||||
HEIGHT=$(("${#OPTIONS[@]}"))
|
|
||||||
CHOICE_HEIGHT=$(("${#OPTIONS[@]}" / 2))
|
CHOICE_HEIGHT=$(("${#OPTIONS[@]}"))
|
||||||
|
HEIGHT=$((CHOICE_HEIGHT+6))
|
||||||
CHOICE=$(dialog --clear \
|
CHOICE=$(dialog --clear \
|
||||||
--backtitle "$BACKTITLE" \
|
--backtitle "$BACKTITLE" \
|
||||||
--title "$TITLE" \
|
--title "$TITLE" \
|
||||||
|
@@ -376,52 +376,49 @@ fi
|
|||||||
HEIGHT=10 # add 6 to CHOICE_HEIGHT + MENU lines
|
HEIGHT=10 # add 6 to CHOICE_HEIGHT + MENU lines
|
||||||
WIDTH=55
|
WIDTH=55
|
||||||
CHOICE_HEIGHT=4 # 1 line / OPTIONS
|
CHOICE_HEIGHT=4 # 1 line / OPTIONS
|
||||||
OPTIONS=(
|
OPTIONS=()
|
||||||
RELEASE "RaspiBlitz Release Update/Recovery"
|
OPTIONS+=(RELEASE "RaspiBlitz Release Update/Recovery")
|
||||||
PATCH "Patch RaspiBlitz v${codeVersion}"
|
OPTIONS+=(PATCH "Patch RaspiBlitz v${codeVersion}")
|
||||||
LND "Interim LND Update Options"
|
OPTIONS+=(BITCOIN "Bitcoin Core Update Options")
|
||||||
BITCOIN "Bitcoin Core Update Options"
|
|
||||||
)
|
if [ "${lightning}" == "lnd" ]; then
|
||||||
|
OPTIONS+=(LND "Interim LND Update Options")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${bos}" == "on" ]; then
|
if [ "${bos}" == "on" ]; then
|
||||||
OPTIONS+=(BOS "Update Balance of Satoshis")
|
OPTIONS+=(BOS "Update Balance of Satoshis")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${thunderhub}" == "on" ]; then
|
if [ "${thunderhub}" == "on" ]; then
|
||||||
OPTIONS+=(THUB "Update ThunderHub")
|
OPTIONS+=(THUB "Update ThunderHub")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${specter}" == "on" ]; then
|
if [ "${specter}" == "on" ]; then
|
||||||
OPTIONS+=(SPECTER "Update Cryptoadvance Specter")
|
OPTIONS+=(SPECTER "Update Cryptoadvance Specter")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${rtlWebinterface}" == "on" ]; then
|
if [ "${rtlWebinterface}" == "on" ]; then
|
||||||
OPTIONS+=(RTL "Update RTL")
|
OPTIONS+=(RTL "Update RTL")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${sphinxrelay}" == "on" ]; then
|
if [ "${sphinxrelay}" == "on" ]; then
|
||||||
OPTIONS+=(SPHINX "Update Sphinx Server Relay")
|
OPTIONS+=(SPHINX "Update Sphinx Server Relay")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${pyblock}" == "on" ]; then
|
if [ "${pyblock}" == "on" ]; then
|
||||||
OPTIONS+=(PYBLOCK "Update PyBLOCK")
|
OPTIONS+=(PYBLOCK "Update PyBLOCK")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${mempoolExplorer}" == "on" ]; then
|
if [ "${mempoolExplorer}" == "on" ]; then
|
||||||
OPTIONS+=(MEMPOOL "Update Mempool Explorer")
|
OPTIONS+=(MEMPOOL "Update Mempool Explorer")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${runBehindTor}" == "on" ]; then
|
if [ "${runBehindTor}" == "on" ]; then
|
||||||
OPTIONS+=(TOR "Update Tor from the source code")
|
OPTIONS+=(TOR "Update Tor from the source code")
|
||||||
HEIGHT=$((HEIGHT+1))
|
|
||||||
CHOICE_HEIGHT=$((CHOICE_HEIGHT+1))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CHOICE_HEIGHT=$(("${#OPTIONS[@]}"))
|
||||||
|
HEIGHT=$((CHOICE_HEIGHT+6))
|
||||||
CHOICE=$(dialog --clear \
|
CHOICE=$(dialog --clear \
|
||||||
--backtitle "" \
|
--backtitle "" \
|
||||||
--title "Update Options" \
|
--title "Update Options" \
|
||||||
|
Reference in New Issue
Block a user