mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 11:10:48 +02:00
feat: Add Labelbase option to BTC main menu
This commit is contained in:
parent
dc4e1c55c9
commit
a7fa64af24
@ -30,6 +30,7 @@ if [ ${#helipad} -eq 0 ]; then helipad="off"; fi
|
||||
if [ ${#lightningtipbot} -eq 0 ]; then lightningtipbot="off"; fi
|
||||
if [ ${#fints} -eq 0 ]; then fints="off"; fi
|
||||
if [ ${#lndk} -eq 0 ]; then lndk="off"; fi
|
||||
if [ ${#labelbase} -eq 0 ]; then labelbase="off"; fi
|
||||
|
||||
# show select dialog
|
||||
echo "run dialog ..."
|
||||
@ -46,6 +47,7 @@ if [ "${network}" == "bitcoin" ]; then
|
||||
OPTIONS+=(ja 'BTC JoinMarket+JoininBox menu' ${joinmarket})
|
||||
OPTIONS+=(za 'BTC Jam (JoinMarket WebUI)' ${jam})
|
||||
OPTIONS+=(wa 'BTC Download Bitcoin Whitepaper' ${whitepaper})
|
||||
OPTIONS+=(ls 'BTC Labelbase' ${labelbase})
|
||||
fi
|
||||
|
||||
# available for both LND & c-lightning
|
||||
@ -579,6 +581,21 @@ else
|
||||
echo "Whitepaper setting unchanged."
|
||||
fi
|
||||
|
||||
# labelbase process choice
|
||||
choice="off"; check=$(echo "${CHOICES}" | grep -c "ls")
|
||||
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||
if [ "${labelbase}" != "${choice}" ]; then
|
||||
echo "Labelbase setting changed .."
|
||||
anychange=1
|
||||
sudo -u admin /home/admin/config.scripts/bonus.labelbase.sh ${choice}
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
if [ "${labelbase}" = "on" ]; then
|
||||
sudo -u admin /home/admin/config.scripts/bonus.labelbase.sh menu
|
||||
fi
|
||||
else
|
||||
echo "Labelbase setting unchanged."
|
||||
fi
|
||||
|
||||
# fints process choice
|
||||
choice="off"; check=$(echo "${CHOICES}" | grep -c "fn")
|
||||
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||
|
Loading…
Reference in New Issue
Block a user