1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

Only start GUI services if a screen is attached.

Support only for rpi's at this moment. Will figure out x86_64 when we get there.
This commit is contained in:
j1nx
2022-01-29 16:00:51 +01:00
parent b713179e78
commit 3734680436
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
status="$(sudo tvservice -n 2>&1)"
if [ "$status" == "[E] No device present" ];
then
exit 1
else
exit 0
fi