diff --git a/home.admin/00settingsMenuServices.sh b/home.admin/00settingsMenuServices.sh index 8d9d451d..a3819a15 100755 --- a/home.admin/00settingsMenuServices.sh +++ b/home.admin/00settingsMenuServices.sh @@ -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