mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
introduce "headless" mode for H/W without LCD (#1617)
This commit is contained in:
parent
2941fce148
commit
0cea180ed6
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
###########################
|
||||
|
|
Loading…
Add table
Reference in a new issue