Revert "udevil: use SYSTEMD_WANTS in udev"

This reverts commit 368f9ae5a17eb0a5df30ac0198be602470ad0791.

368f9ae broke optical drive automounting, and I can't reproduce
anymore the bug that forced me to switch to SYSTEMD_WANTS. o_O...
This commit is contained in:
Stefan Saraev 2015-04-25 13:10:53 +03:00
parent f799bc335a
commit 30d43e17d8

View File

@ -16,13 +16,13 @@ GOTO="exit"
# mount or umount for hdds # mount or umount for hdds
LABEL="harddisk" LABEL="harddisk"
ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="udevil-mount@/dev/%k.service" ACTION=="add", RUN+="/usr/bin/systemctl restart udevil-mount@/dev/%k.service"
ACTION=="remove", RUN+="/usr/bin/systemctl stop udevil-mount@/dev/%k.service" ACTION=="remove", RUN+="/usr/bin/systemctl stop udevil-mount@/dev/%k.service"
GOTO="exit" GOTO="exit"
# mount or umount for opticals # mount or umount for opticals
LABEL="optical" LABEL="optical"
ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="udevil-mount@/dev/%k.service" ACTION=="add|change", RUN+="/usr/bin/systemctl restart udevil-mount@/dev/%k.service"
GOTO="exit" GOTO="exit"
# Exit # Exit