mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
adding ZeroTier to settings menu
This commit is contained in:
parent
23173e68f6
commit
3c05e27531
@ -27,6 +27,7 @@ if [ ${#faraday} -eq 0 ]; then faraday="off"; fi
|
|||||||
if [ ${#bos} -eq 0 ]; then bos="off"; fi
|
if [ ${#bos} -eq 0 ]; then bos="off"; fi
|
||||||
if [ ${#thunderhub} -eq 0 ]; then thunderhub="off"; fi
|
if [ ${#thunderhub} -eq 0 ]; then thunderhub="off"; fi
|
||||||
if [ ${#letsencrypt} -eq 0 ]; then letsencrypt="off"; fi
|
if [ ${#letsencrypt} -eq 0 ]; then letsencrypt="off"; fi
|
||||||
|
if [ ${#zerotier} -eq 0 ]; then zerotier="off"; fi
|
||||||
|
|
||||||
echo "map dropboxbackup to on/off"
|
echo "map dropboxbackup to on/off"
|
||||||
DropboxBackup="off";
|
DropboxBackup="off";
|
||||||
@ -98,6 +99,7 @@ t 'ThunderHub' ${thunderhub} \
|
|||||||
i 'LNbits' ${LNBits} \
|
i 'LNbits' ${LNBits} \
|
||||||
d 'StaticChannelBackup on DropBox' ${DropboxBackup} \
|
d 'StaticChannelBackup on DropBox' ${DropboxBackup} \
|
||||||
j 'JoinMarket' ${joinmarket} \
|
j 'JoinMarket' ${joinmarket} \
|
||||||
|
z 'ZeroTier' ${zerotier} \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
else
|
else
|
||||||
CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to activate/de-activate ' 20 45 12 \
|
CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to activate/de-activate ' 20 45 12 \
|
||||||
@ -125,6 +127,7 @@ t 'ThunderHub' ${thunderhub} \
|
|||||||
i 'LNbits' ${LNBits} \
|
i 'LNbits' ${LNBits} \
|
||||||
d 'StaticChannelBackup on DropBox' ${DropboxBackup} \
|
d 'StaticChannelBackup on DropBox' ${DropboxBackup} \
|
||||||
j 'JoinMarket' ${joinmarket} \
|
j 'JoinMarket' ${joinmarket} \
|
||||||
|
z 'ZeroTier' ${zerotier} \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -732,6 +735,18 @@ else
|
|||||||
echo "JoinMarket not changed."
|
echo "JoinMarket not changed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ZeroTier process choice
|
||||||
|
choice="off"; check=$(echo "${CHOICES}" | grep -c "z")
|
||||||
|
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||||
|
if [ "${zerotier}" != "${choice}" ]; then
|
||||||
|
echo "keysend setting changed .."
|
||||||
|
anychange=1
|
||||||
|
sudo -u admin /home/admin/config.scripts/bonus.zerotier.sh ${choice}
|
||||||
|
dialog --msgbox "ZeroTier is now ${choice}." 5 46
|
||||||
|
else
|
||||||
|
echo "keysend setting unchanged."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ${anychange} -eq 0 ]; then
|
if [ ${anychange} -eq 0 ]; then
|
||||||
dialog --msgbox "NOTHING CHANGED!\nUse Spacebar to check/uncheck services." 8 58
|
dialog --msgbox "NOTHING CHANGED!\nUse Spacebar to check/uncheck services." 8 58
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user