add faraday to service menu

This commit is contained in:
geco91 2020-05-15 20:02:35 +02:00
parent c3730671fc
commit 6b39d358e9

View File

@ -23,6 +23,7 @@ if [ ${#ElectRS} -eq 0 ]; then ElectRS="off"; fi
if [ ${#lndmanage} -eq 0 ]; then lndmanage="off"; fi if [ ${#lndmanage} -eq 0 ]; then lndmanage="off"; fi
if [ ${#joinmarket} -eq 0 ]; then joinmarket="off"; fi if [ ${#joinmarket} -eq 0 ]; then joinmarket="off"; fi
if [ ${#LNBits} -eq 0 ]; then LNBits="off"; fi if [ ${#LNBits} -eq 0 ]; then LNBits="off"; fi
if [ ${#faraday} -eq 0 ]; then faraday="off"; fi
echo "map dropboxbackup to on/off" echo "map dropboxbackup to on/off"
DropboxBackup="off"; DropboxBackup="off";
@ -87,6 +88,7 @@ r 'LCD Rotate' ${lcdrotateMenu} \
e 'Electrum Rust Server' ${ElectRS} \ e 'Electrum Rust Server' ${ElectRS} \
p 'BTCPayServer' ${BTCPayServer} \ p 'BTCPayServer' ${BTCPayServer} \
m 'lndmanage' ${lndmanage} \ m 'lndmanage' ${lndmanage} \
f 'Faraday' ${faraday} \
i 'LNbits' ${LNBits} \ i 'LNbits' ${LNBits} \
d 'StaticChannelBackup on DropBox' ${DropboxBackup} \ d 'StaticChannelBackup on DropBox' ${DropboxBackup} \
j 'JoinMarket' ${joinmarket} \ j 'JoinMarket' ${joinmarket} \
@ -110,6 +112,7 @@ r 'LCD Rotate' ${lcdrotateMenu} \
e 'Electrum Rust Server' ${ElectRS} \ e 'Electrum Rust Server' ${ElectRS} \
p 'BTCPayServer' ${BTCPayServer} \ p 'BTCPayServer' ${BTCPayServer} \
m 'lndmanage' ${lndmanage} \ m 'lndmanage' ${lndmanage} \
f 'Faraday' ${faraday} \
i 'LNbits' ${LNBits} \ i 'LNbits' ${LNBits} \
d 'StaticChannelBackup on DropBox' ${DropboxBackup} \ d 'StaticChannelBackup on DropBox' ${DropboxBackup} \
j 'JoinMarket' ${joinmarket} \ j 'JoinMarket' ${joinmarket} \
@ -564,6 +567,21 @@ else
echo "lndmanage setting unchanged." echo "lndmanage setting unchanged."
fi fi
# FARADAY process choice
choice="off"; check=$(echo "${CHOICES}" | grep -c "f")
if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${faraday}" != "${choice}" ]; then
echo "faraday Setting changed .."
anychange=1
sudo -u admin /home/admin/config.scripts/bonus.faraday.sh ${choice}
source /mnt/hdd/raspiblitz.conf
if [ "${faraday}" = "on" ]; then
sudo -u admin /home/admin/config.scripts/bonus.faraday.sh menu
fi
else
echo "faraday setting unchanged."
fi
# LNbits process choice # LNbits process choice
choice="off"; check=$(echo "${CHOICES}" | grep -c "i") choice="off"; check=$(echo "${CHOICES}" | grep -c "i")
if [ ${check} -eq 1 ]; then choice="on"; fi if [ ${check} -eq 1 ]; then choice="on"; fi