]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
The 40autorandr script needs to be executable for udev
authorDaniel Hahler <git@thequod.de>
Wed, 2 Dec 2015 11:43:19 +0000 (12:43 +0100)
committerDaniel Hahler <git@thequod.de>
Wed, 2 Dec 2015 11:43:19 +0000 (12:43 +0100)
Otherwise it will not be executed:
… systemd-udevd[32358]: failed to execute '/etc/pm/sleep.d/40autorandr' '/etc/pm/sleep.d/40autorandr thaw': Permission denied
… systemd-udevd[32355]: Process '/etc/pm/sleep.d/40autorandr thaw' failed with exit code 2.

Makefile

index 8eb12e6c93fbdb77780d2545abcd584ebb6f54fb..42ee710fcd5c04f0b4fa57dc98df0abf14a5eb25 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ 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