Only use name of executable in systemd detection (See #38)

This commit is contained in:
Phillip Berndt 2015-11-24 19:10:24 +01:00
parent 48713bbae2
commit dcb1e65fd1

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 $$(readlink -f $$(cat /proc/1/cmdline)) && echo "y")
HAVE_SYSTEMD=$(shell grep -q systemd $$(readlink -f $$(awk '{print $$1}' /proc/1/cmdline)) && echo "y")
ifeq ($(HAVE_SYSTEMD),y)
DEFAULT_TARGETS+=systemd
endif