mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
Co-authored-by: rootzoll <rotzoll@MacBook2020.fritz.box>
This commit is contained in:
parent
7126b57afd
commit
907dffc427
2 changed files with 33 additions and 20 deletions
|
@ -5,26 +5,7 @@ source /home/admin/raspiblitz.info
|
|||
source /mnt/hdd/raspiblitz.conf
|
||||
source /home/admin/_version.info
|
||||
|
||||
clear
|
||||
|
||||
# Basic Options
|
||||
OPTIONS=(
|
||||
RELEASE "RaspiBlitz Release Update/Recovery" \
|
||||
LND "Interim LND Update Options" \
|
||||
PATCH "Patch RaspiBlitz v${codeVersion}"
|
||||
)
|
||||
|
||||
if [ "${bos}" == "on" ]; then
|
||||
OPTIONS+=(BOS "Update Balance of Satoshis")
|
||||
fi
|
||||
if [ "${thunderhub}" == "on" ]; then
|
||||
OPTIONS+=(THUB "Update ThunderHub")
|
||||
fi
|
||||
if [ "${specter}" == "on" ]; then
|
||||
OPTIONS+=(SPECTER "Update Cryptoadvance Specter")
|
||||
fi
|
||||
|
||||
CHOICE=$(whiptail --clear --title "Update Options" --menu "" 13 55 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||
## PROCEDURES
|
||||
|
||||
release()
|
||||
{
|
||||
|
@ -285,6 +266,31 @@ Do you really want to update LND now?
|
|||
esac
|
||||
}
|
||||
|
||||
# quick call by parameter
|
||||
if [ "$1" == "github" ]; then
|
||||
patch
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Basic Options Menu
|
||||
OPTIONS=(
|
||||
RELEASE "RaspiBlitz Release Update/Recovery" \
|
||||
LND "Interim LND Update Options" \
|
||||
PATCH "Patch RaspiBlitz v${codeVersion}"
|
||||
)
|
||||
|
||||
if [ "${bos}" == "on" ]; then
|
||||
OPTIONS+=(BOS "Update Balance of Satoshis")
|
||||
fi
|
||||
if [ "${thunderhub}" == "on" ]; then
|
||||
OPTIONS+=(THUB "Update ThunderHub")
|
||||
fi
|
||||
if [ "${specter}" == "on" ]; then
|
||||
OPTIONS+=(SPECTER "Update Cryptoadvance Specter")
|
||||
fi
|
||||
|
||||
CHOICE=$(whiptail --clear --title "Update Options" --menu "" 13 55 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||
|
||||
clear
|
||||
case $CHOICE in
|
||||
RELEASE)
|
||||
|
|
|
@ -60,6 +60,13 @@ function off() {
|
|||
./XXshutdown.sh
|
||||
}
|
||||
|
||||
# command: github
|
||||
# jumpng directly into the options to change branch/repo/pr
|
||||
function github() {
|
||||
cd /home/admin
|
||||
./99updateMenu.sh github
|
||||
}
|
||||
|
||||
# command: hdmi
|
||||
function hdmi() {
|
||||
echo "# SWITCHING VIDEO OUTPUT TO --> HDMI"
|
||||
|
|
Loading…
Add table
Reference in a new issue