123456789101112 |
- ACTION!="add", GOTO="cd_aliases_generator_end"
- SUBSYSTEM!="block", GOTO="cd_aliases_generator_end"
- ENV{GENERATED}=="?*", GOTO="cd_aliases_generator_end"
- ENV{ID_CDROM}=="?*", PROGRAM="/bin/grep -c ' / [^[:space:]]* rw' /proc/mounts", RESULT!="2", RUN+="/bin/false", GOTO="cd_aliases_generator_end"
- ENV{ID_CDROM}=="?*", PROGRAM="write_cd_aliases", SYMLINK+="%c"
- LABEL="cd_aliases_generator_end"
|