From a4257807d791e60e355e0022198f19ee4bdaf294 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 21 Jan 2019 21:47:16 +0100 Subject: [PATCH] autopilot by lnd.conf --- home.admin/00settingsMenuServices.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home.admin/00settingsMenuServices.sh b/home.admin/00settingsMenuServices.sh index 728be19a9..6a87c5122 100644 --- a/home.admin/00settingsMenuServices.sh +++ b/home.admin/00settingsMenuServices.sh @@ -22,6 +22,14 @@ if [ ${#dynDomain} -gt 0 ]; then dynDomainMenu="${dynDomain}" fi +echo "check autopilot by lnd.conf" +lndAutoPilotOn=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'autopilot.active=1') +if [ ${lndAutoPilotOn} -eq 1 ]; then + autoPilot="on" +else + autoPilot="off" +fi + # show select dialog echo "run dialog ..." CHOICES=$(dialog --checklist 'Activate/Deactivate Services:' 15 45 7 \