Browse Source

display dyndomain

dev
rootzoll 6 years ago
parent
commit
777d5c2f02
  1. 7
      home.admin/00mainMenu.sh
  2. 8
      home.admin/00settingsMenuServices.sh

7
home.admin/00mainMenu.sh

@ -183,9 +183,12 @@ else
plus=""
if [ "${runBehindTor}" = "on" ]; then
plus="/ TOR"
plus=" / TOR"
fi
BACKTITLE="${localip} / ${hostname} / ${network} / ${chain} ${plus}"
if [ ${#dynDomain} -gt 0 ]; then
plus="${plus} / ${dynDomain}"
fi
BACKTITLE="${localip} / ${hostname} / ${network} / ${chain}${plus}"
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
if [ ${locked} -gt 0 ]; then

8
home.admin/00settingsMenuServices.sh

@ -14,14 +14,18 @@ if [ "${chain}" = "test" ]; then chainValue="on"; fi
# map domain to on/off
domainValue="off"
if [ ${#dynDomain} -gt 0 ]; then domainValue="on"; fi
dynDomainMenu="'DynamicDNS (domainname)'"
if [ ${#dynDomain} -gt 0 ]; then
domainValue="on"
dynDomainMenu="'${dynDomain}'"
fi
# show select dialog
CHOICES=$(dialog --checklist 'Activate/Deactivate Services:' 15 45 7 \
1 'Channel Autopilot' ${autoPilot} \
2 'Testnet' ${chainValue} \
3 'Router AutoNAT' ${autoNatDiscovery} \
4 'DynamicDNS (domainname)' ${domainValue} \
4 ${dynDomainMenu} ${domainValue} \
5 'Run behind TOR' ${runBehindTor} \
6 'RTL Webinterface' ${rtlWebinterface} \
2>&1 >/dev/tty)

Loading…
Cancel
Save