summaryrefslogtreecommitdiffstats
path: root/core/includes
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-13 16:42:44 +0200
committerSimon Rettberg2022-10-13 16:42:44 +0200
commit74409ea977d6a18ff206689a2eed67f722722f76 (patch)
tree9dece04e5be33ac1b0a2fc867d5a461fb4020f08 /core/includes
parent[rootfs-stage32] Add steal_x helper to access running X (diff)
downloadmltk-74409ea977d6a18ff206689a2eed67f722722f76.tar.gz
mltk-74409ea977d6a18ff206689a2eed67f722722f76.tar.xz
mltk-74409ea977d6a18ff206689a2eed67f722722f76.zip
Allow running on X-less setups
Diffstat (limited to 'core/includes')
-rw-r--r--core/includes/distribution.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/includes/distribution.inc b/core/includes/distribution.inc
index e64ace1f..b1cbc288 100644
--- a/core/includes/distribution.inc
+++ b/core/includes/distribution.inc
@@ -48,6 +48,7 @@ detect_distribution () {
detect_ubuntu_lts () {
local TMP=$(dpkg -S /usr/bin/Xorg)
+ [ -z "$TMP" ] && return
[[ "$TMP" == xserver-xorg* ]] || perror "Could not detect xserver package version (returned: $TMP)"
TMP=${TMP%: *}
TMP=${TMP#xserver-xorg-core}