mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 21:28:54 +02:00
introduce "headless" mode for H/W without LCD (#1617)
This commit is contained in:
@@ -78,6 +78,17 @@ chain=""
|
||||
while :
|
||||
do
|
||||
|
||||
# save some CPU / log clutter on a "headless" installation (no LCD attached)
|
||||
# by running the LCD stuff each 5 minutes that otherwise will be run every 5 seconds
|
||||
#
|
||||
# just insert a line "headless=on" into your "/mnt/hdd/raspiblitz.conf" file
|
||||
#
|
||||
isHeadless=$(cat "${configFile}" 2>/dev/null | grep -Ec "headless=1|headless=on")
|
||||
if [ ${isHeadless} -gt 0 ]; then
|
||||
echo "*** headless=on sleeping 600 seconds ***" | systemd-cat
|
||||
sleep 600
|
||||
fi
|
||||
|
||||
###########################
|
||||
# CHECK BASIC DATA
|
||||
###########################
|
||||
|
Reference in New Issue
Block a user