mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 11:37:19 +02:00
#681 added to settings menu
This commit is contained in:
@@ -14,6 +14,7 @@ if [ ${#chain} -eq 0 ]; then chain="main"; fi
|
|||||||
if [ ${#autoNatDiscovery} -eq 0 ]; then autoNatDiscovery="off"; fi
|
if [ ${#autoNatDiscovery} -eq 0 ]; then autoNatDiscovery="off"; fi
|
||||||
if [ ${#networkUPnP} -eq 0 ]; then networkUPnP="off"; fi
|
if [ ${#networkUPnP} -eq 0 ]; then networkUPnP="off"; fi
|
||||||
if [ ${#touchscreen} -eq 0 ]; then touchscreen=0; fi
|
if [ ${#touchscreen} -eq 0 ]; then touchscreen=0; fi
|
||||||
|
if [ ${#lcdrotate} -eq 0 ]; then lcdrotate=0; fi
|
||||||
|
|
||||||
echo "map chain to on/off"
|
echo "map chain to on/off"
|
||||||
chainValue="off"
|
chainValue="off"
|
||||||
@@ -53,6 +54,7 @@ CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to a
|
|||||||
5 'RTL Webinterface' ${rtlWebinterface} \
|
5 'RTL Webinterface' ${rtlWebinterface} \
|
||||||
6 'LND Auto-Unlock' ${autoUnlock} \
|
6 'LND Auto-Unlock' ${autoUnlock} \
|
||||||
9 'Touchscreen' ${tochscreenMenu} \
|
9 'Touchscreen' ${tochscreenMenu} \
|
||||||
|
r 'LCD Rotate' ${lcdrotate} \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
else
|
else
|
||||||
CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to activate/de-activate ' 16 45 9 \
|
CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to activate/de-activate ' 16 45 9 \
|
||||||
@@ -65,6 +67,7 @@ CHOICES=$(dialog --title ' Additional Services ' --checklist ' use spacebar to a
|
|||||||
7 'BTC UPnP (AutoNAT)' ${networkUPnP} \
|
7 'BTC UPnP (AutoNAT)' ${networkUPnP} \
|
||||||
8 'LND UPnP (AutoNAT)' ${autoNatDiscovery} \
|
8 'LND UPnP (AutoNAT)' ${autoNatDiscovery} \
|
||||||
9 'Touchscreen' ${tochscreenMenu} \
|
9 'Touchscreen' ${tochscreenMenu} \
|
||||||
|
r 'LCD Rotate' ${lcdrotate} \
|
||||||
2>&1 >/dev/tty)
|
2>&1 >/dev/tty)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -300,6 +303,18 @@ else
|
|||||||
echo "Touchscreen Setting unchanged."
|
echo "Touchscreen Setting unchanged."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# touchscreen
|
||||||
|
choice="0"; check=$(echo "${CHOICES}" | grep -c "r")
|
||||||
|
if [ ${check} -eq 1 ]; then choice="1"; fi
|
||||||
|
if [ "${touchscreen}" != "${choice}" ]; then
|
||||||
|
echo "LCD Rotate Setting changed .."
|
||||||
|
anychange=1
|
||||||
|
sudo /home/admin/config.scripts/blitz.lcdrotate.sh ${choice}
|
||||||
|
needsReboot=1
|
||||||
|
else
|
||||||
|
echo "Touchscreen Setting unchanged."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ${anychange} -eq 0 ]; then
|
if [ ${anychange} -eq 0 ]; then
|
||||||
dialog --pause "Hint: Use Spacebar to check/uncheck services." 8 58 5
|
dialog --pause "Hint: Use Spacebar to check/uncheck services." 8 58 5
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user