mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
Co-authored-by: rootzoll <rotzoll@MacBook2020.fritz.box>
This commit is contained in:
committed by
rootzoll
parent
7126b57afd
commit
907dffc427
@@ -5,26 +5,7 @@ source /home/admin/raspiblitz.info
|
|||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
source /home/admin/_version.info
|
source /home/admin/_version.info
|
||||||
|
|
||||||
clear
|
## PROCEDURES
|
||||||
|
|
||||||
# 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)
|
|
||||||
|
|
||||||
release()
|
release()
|
||||||
{
|
{
|
||||||
@@ -285,6 +266,31 @@ Do you really want to update LND now?
|
|||||||
esac
|
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
|
clear
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
RELEASE)
|
RELEASE)
|
||||||
|
@@ -60,6 +60,13 @@ function off() {
|
|||||||
./XXshutdown.sh
|
./XXshutdown.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# command: github
|
||||||
|
# jumpng directly into the options to change branch/repo/pr
|
||||||
|
function github() {
|
||||||
|
cd /home/admin
|
||||||
|
./99updateMenu.sh github
|
||||||
|
}
|
||||||
|
|
||||||
# command: hdmi
|
# command: hdmi
|
||||||
function hdmi() {
|
function hdmi() {
|
||||||
echo "# SWITCHING VIDEO OUTPUT TO --> HDMI"
|
echo "# SWITCHING VIDEO OUTPUT TO --> HDMI"
|
||||||
|
Reference in New Issue
Block a user