From: Phillip Berndt Date: Tue, 24 Nov 2015 18:05:46 +0000 (+0100) Subject: Improved systemd detection (See bug #38, thanks to @blueyed) X-Git-Tag: 1.0~40 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=48713bbae23554ea604f11a9a5bcf07888a7b08c Improved systemd detection (See bug #38, thanks to @blueyed) --- 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