X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=42ee710fcd5c04f0b4fa57dc98df0abf14a5eb25;hb=9d4f09ed4f66a25d2f580f60ad4fda024e573b71;hp=a8ed7931d3d49f2c4d999083c615c14d3983180f;hpb=48713bbae23554ea604f11a9a5bcf07888a7b08c;p=deb_pkgs%2Fautorandr.git diff --git a/Makefile b/Makefile index a8ed793..42ee710 100644 --- a/Makefile +++ b/Makefile @@ -39,13 +39,13 @@ DEFAULT_TARGETS+=pmutils endif install_pmutils: - install -D -m 644 contrib/pm-utils/40autorandr ${DESTDIR}/etc/pm/sleep.d/40autorandr + install -D -m 755 contrib/pm-utils/40autorandr ${DESTDIR}/etc/pm/sleep.d/40autorandr 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