1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

cdrom_id: add rules file to call cdrom_id

This commit is contained in:
Kay Sievers 2006-09-05 03:43:14 +02:00
parent eef5447934
commit e136a3360b
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
# import optical drive properties
KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"

View File

@ -18,7 +18,7 @@ usrbindir = ${prefix}/usr/bin
usrsbindir = ${prefix}/usr/sbin
libudevdir = ${prefix}/lib/udev
mandir = ${prefix}/usr/share/man
configdir = ${etcdir}/udev/
configdir = ${etcdir}/udev
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
@ -50,10 +50,12 @@ clean:
install-bin: all
$(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
$(INSTALL_DATA) -D 60-cdrom_id.rules $(DESTDIR)$(configdir)/rules.d/60-cdrom_id.rules
.PHONY: install-bin
uninstall-bin:
- rm $(DESTDIR)$(libudevdir)/$(PROG)
- rm $(DESTDIR)$(configdir)/rules.d/60-cdrom_id.rules
.PHONY: uninstall-bin
install-man: