mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-20 05:47:00 +00:00
Only use name of executable in systemd detection (See #38)
This commit is contained in:
parent
48713bbae2
commit
dcb1e65fd1
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 $$(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
|
||||
|
Loading…
Reference in New Issue
Block a user