mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-20 13:57:03 +00:00
Improved systemd detection (See bug #38, thanks to @blueyed)
This commit is contained in:
parent
96231a60c0
commit
48713bbae2
2
Makefile
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user