From 1c4800743d22d675ccfa48364d8aa558e8b7407c Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 3 Jun 2008 21:51:14 +0000 Subject: Moved bootscripts and udev-config to BOOK Updated Makefile to automatically generate bootscript and udev-config tarballs Updated licesnse to be the same as BLFS git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8548 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- udev-config/contrib/debian/83-cdrom-symlinks.rules | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 udev-config/contrib/debian/83-cdrom-symlinks.rules (limited to 'udev-config/contrib/debian/83-cdrom-symlinks.rules') diff --git a/udev-config/contrib/debian/83-cdrom-symlinks.rules b/udev-config/contrib/debian/83-cdrom-symlinks.rules new file mode 100644 index 000000000..4713c0b92 --- /dev/null +++ b/udev-config/contrib/debian/83-cdrom-symlinks.rules @@ -0,0 +1,12 @@ +# /etc/udev/rules.d/83-cdrom-symlinks.rules: Determine CD drive capability. + +ACTION!="add", GOTO="cd_aliases_generator_end" +SUBSYSTEM!="block", GOTO="cd_aliases_generator_end" +ENV{GENERATED}=="?*", GOTO="cd_aliases_generator_end" + +# Fail the uevent if the autogenerated rules cannot be saved +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" -- cgit v1.2.3-54-g00ecf