Skip to content

Commit

Permalink
Improved systemd detection (See bug wertarbyte#38, thanks to @blueyed)
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipberndt committed Nov 24, 2015
1 parent 96231a6 commit 48713bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48713bb

Please sign in to comment.