Improved systemd detection (See bug #38, thanks to @blueyed)

This commit is contained in:
Phillip Berndt 2015-11-24 19:05:46 +01:00
parent 96231a60c0
commit 48713bbae2

View File

@ -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