From: Phillip Berndt Date: Wed, 7 Jun 2017 08:31:01 +0000 (+0200) Subject: Call systemctl with `--no-block` from udev rule (Fixes #61) X-Git-Tag: 1.1~1 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=aad63c5058e3d15ea3a671a604bdc95140d4c4fe Call systemctl with `--no-block` from udev rule (Fixes #61) --- diff --git a/Makefile b/Makefile index 7125730..1af39a3 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ endif install_udev: $(if $(UDEV_RULES_DIR),,$(error UDEV_RULES_DIR is not defined)) mkdir -p ${DESTDIR}/${UDEV_RULES_DIR}/ - echo 'ACTION=="change", SUBSYSTEM=="drm", RUN+="$(if $(findstring systemd, $(TARGETS)),/bin/systemctl start autorandr.service,${PREFIX}/bin/autorandr --batch --change --default default)"' > ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules + echo 'ACTION=="change", SUBSYSTEM=="drm", RUN+="$(if $(findstring systemd, $(TARGETS)),/bin/systemctl start --no-block autorandr.service,${PREFIX}/bin/autorandr --batch --change --default default)"' > ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules @echo @echo "To activate the udev rules, run this command as root:" @echo " udevadm control --reload-rules" diff --git a/README.md b/README.md index 728def6..2c08d50 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ The most useful one is `$AUTORANDR_CURRENT_PROFILE`. ## Changelog +* *2017-06-07* Call systemctl with `--no-block` from udev rule (See #61) * *2017-01-20* New script hook, `predetect` * *2017-01-18* Accept comments (lines starting with `#`) in config/setup files