From a66bfb3a72e532ad6852bc10c4944c808c0c56b7 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Mon, 29 Jul 2019 00:59:51 +0200 Subject: [PATCH] fix service menu --- home.admin/00settingsMenuServices.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home.admin/00settingsMenuServices.sh b/home.admin/00settingsMenuServices.sh index c5385197..6bb40499 100644 --- a/home.admin/00settingsMenuServices.sh +++ b/home.admin/00settingsMenuServices.sh @@ -28,6 +28,12 @@ if [ ${#dynDomain} -gt 0 ]; then dynDomainMenu="${dynDomain}" fi +echo "map lcdrotate to on/off" +lcdrotateMenu='off' +if [ ${lcdrotate} -gt 0 ]; then + lcdrotateMenu='on' +fi + echo "map touchscreen to on/off" tochscreenMenu='off' if [ ${touchscreen} -gt 0 ]; then @@ -54,7 +60,7 @@ CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to a 5 'RTL Webinterface' ${rtlWebinterface} \ 6 'LND Auto-Unlock' ${autoUnlock} \ 9 'Touchscreen' ${tochscreenMenu} \ -r 'LCD Rotate' ${lcdrotate} \ +r 'LCD Rotate' ${lcdrotateMenu} \ 2>&1 >/dev/tty) else CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to activate/de-activate ' 16 45 9 \ @@ -67,7 +73,7 @@ CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to a 7 'BTC UPnP (AutoNAT)' ${networkUPnP} \ 8 'LND UPnP (AutoNAT)' ${autoNatDiscovery} \ 9 'Touchscreen' ${tochscreenMenu} \ -r 'LCD Rotate' ${lcdrotate} \ +r 'LCD Rotate' ${lcdrotateMenu} \ 2>&1 >/dev/tty) fi