#248 removed autoNat from menu

This commit is contained in:
rootzoll 2019-01-10 18:17:03 +01:00
parent d6c7133c6f
commit 5d62123a22

View File

@ -3,7 +3,8 @@
# get raspiblitz config # get raspiblitz config
source /mnt/hdd/raspiblitz.conf source /mnt/hdd/raspiblitz.conf
if [ ${#autoPilot} -eq 0 ]; then autoPilot="off"; fi if [ ${#autoPilot} -eq 0 ]; then autoPilot="off"; fi
if [ ${#autoNatDiscovery} -eq 0 ]; then autoNatDiscovery="off"; fi # deactivated - see https://github.com/rootzoll/raspiblitz/issues/248
#if [ ${#autoNatDiscovery} -eq 0 ]; then autoNatDiscovery="off"; fi
if [ ${#autoUnlock} -eq 0 ]; then autoUnlock="off"; fi if [ ${#autoUnlock} -eq 0 ]; then autoUnlock="off"; fi
if [ ${#runBehindTor} -eq 0 ]; then runBehindTor="off"; fi if [ ${#runBehindTor} -eq 0 ]; then runBehindTor="off"; fi
if [ ${#rtlWebinterface} -eq 0 ]; then rtlWebinterface="off"; fi if [ ${#rtlWebinterface} -eq 0 ]; then rtlWebinterface="off"; fi
@ -25,11 +26,12 @@ fi
CHOICES=$(dialog --checklist 'Activate/Deactivate Services:' 15 45 7 \ CHOICES=$(dialog --checklist 'Activate/Deactivate Services:' 15 45 7 \
1 'Channel Autopilot' ${autoPilot} \ 1 'Channel Autopilot' ${autoPilot} \
2 'Testnet' ${chainValue} \ 2 'Testnet' ${chainValue} \
3 'Router AutoNAT' ${autoNatDiscovery} \ # deactivated - see https://github.com/rootzoll/raspiblitz/issues/248
4 ${dynDomainMenu} ${domainValue} \ # 3 'Router AutoNAT' ${autoNatDiscovery} \
5 'Run behind TOR' ${runBehindTor} \ 3 ${dynDomainMenu} ${domainValue} \
6 'RTL Webinterface' ${rtlWebinterface} \ 4 'Run behind TOR' ${runBehindTor} \
7 'LND Auto-Unlock' ${autoUnlock} \ 5 'RTL Webinterface' ${rtlWebinterface} \
6 'LND Auto-Unlock' ${autoUnlock} \
2>&1 >/dev/tty) 2>&1 >/dev/tty)
dialogcancel=$? dialogcancel=$?
clear clear
@ -125,19 +127,20 @@ else
echo "Testnet Setting unchanged." echo "Testnet Setting unchanged."
fi fi
# deactivated - see https://github.com/rootzoll/raspiblitz/issues/248
# AUTONAT process choice # AUTONAT process choice
choice="off"; check=$(echo "${CHOICES}" | grep -c "3") # choice="off"; check=$(echo "${CHOICES}" | grep -c "3")
if [ ${check} -eq 1 ]; then choice="on"; fi # if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${autoNatDiscovery}" != "${choice}" ]; then # if [ "${autoNatDiscovery}" != "${choice}" ]; then
echo "AutoNAT Setting changed .." # echo "AutoNAT Setting changed .."
sudo /home/admin/config.scripts/lnd.autonat.sh ${choice} # sudo /home/admin/config.scripts/lnd.autonat.sh ${choice}
needsReboot=1 # needsReboot=1
else # else
echo "AutoNAT Setting unchanged." # echo "AutoNAT Setting unchanged."
fi # fi
# Dynamic Domain # Dynamic Domain
choice="off"; check=$(echo "${CHOICES}" | grep -c "4") choice="off"; check=$(echo "${CHOICES}" | grep -c "3")
if [ ${check} -eq 1 ]; then choice="on"; fi if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${domainValue}" != "${choice}" ]; then if [ "${domainValue}" != "${choice}" ]; then
echo "Dynamic Domain changed .." echo "Dynamic Domain changed .."
@ -148,7 +151,7 @@ else
fi fi
# TOR process choice # TOR process choice
choice="off"; check=$(echo "${CHOICES}" | grep -c "5") choice="off"; check=$(echo "${CHOICES}" | grep -c "4")
if [ ${check} -eq 1 ]; then choice="on"; fi if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${runBehindTor}" != "${choice}" ]; then if [ "${runBehindTor}" != "${choice}" ]; then
echo "TOR Setting changed .." echo "TOR Setting changed .."
@ -159,7 +162,7 @@ else
fi fi
# RTL process choice # RTL process choice
choice="off"; check=$(echo "${CHOICES}" | grep -c "6") choice="off"; check=$(echo "${CHOICES}" | grep -c "5")
if [ ${check} -eq 1 ]; then choice="on"; fi if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${rtlWebinterface}" != "${choice}" ]; then if [ "${rtlWebinterface}" != "${choice}" ]; then
echo "RTL Webinterface Setting changed .." echo "RTL Webinterface Setting changed .."
@ -177,7 +180,7 @@ else
fi fi
# LND Auto-Unlock # LND Auto-Unlock
choice="off"; check=$(echo "${CHOICES}" | grep -c "7") choice="off"; check=$(echo "${CHOICES}" | grep -c "6")
if [ ${check} -eq 1 ]; then choice="on"; fi if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${autoUnlock}" != "${choice}" ]; then if [ "${autoUnlock}" != "${choice}" ]; then
echo "LND Autounlock Setting changed .." echo "LND Autounlock Setting changed .."