fix settings menu

This commit is contained in:
rootzoll 2020-07-04 15:58:14 +02:00
parent 05b7eff2e8
commit dc9716c10b

View file

@ -90,7 +90,7 @@ if [ ${#runBehindTor} -eq 0 ] || [ "${runBehindTor}" = "off" ]; then
OPTIONS+=(l 'LND UPnP (AutoNAT)' ${autoNatDiscovery}) OPTIONS+=(l 'LND UPnP (AutoNAT)' ${autoNatDiscovery})
fi fi
CHOICES=$(dialog --title ' Node Settings & Options ' --checklist ' use spacebar to activate/de-activate ' 20 45 12 "${OPTIONS[@]}" 2>&1 >/dev/tty) CHOICES=$(dialog --title ' Node Settings & Options ' --checklist ' use spacebar to activate/de-activate ' 19 45 11 "${OPTIONS[@]}" 2>&1 >/dev/tty)
dialogcancel=$? dialogcancel=$?
echo "done dialog" echo "done dialog"
@ -407,7 +407,7 @@ fi
# ZeroTier process choice # ZeroTier process choice
choice="off"; check=$(echo "${CHOICES}" | grep -c "z") choice="off"; check=$(echo "${CHOICES}" | grep -c "z")
if [ ${check} -eq 1 ]; then choice="on"; fi if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${zerotier}" != "${choice}" ]; then if [ "${zerotierSwitch}" != "${choice}" ]; then
echo "zerotier setting changed .." echo "zerotier setting changed .."
anychange=1 anychange=1
error="" error=""