From 48713bbae23554ea604f11a9a5bcf07888a7b08c Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Tue, 24 Nov 2015 19:05:46 +0100 Subject: [PATCH] Improved systemd detection (See bug #38, thanks to @blueyed) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 122c2f7..a8ed793 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ uninstall_pmutils: rm -f ${DESTDIR}/etc/pm/sleep.d/40autorandr # Rules for systemd -HAVE_SYSTEMD=$(shell grep -q systemd /proc/1/cmdline && echo "y") +HAVE_SYSTEMD=$(shell grep -q systemd $$(readlink -f $$(cat /proc/1/cmdline)) && echo "y") ifeq ($(HAVE_SYSTEMD),y) DEFAULT_TARGETS+=systemd endif -- 2.39.2