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:
parent
eef5447934
commit
e136a3360b
3
extras/cdrom_id/60-cdrom_id.rules
Normal file
3
extras/cdrom_id/60-cdrom_id.rules
Normal 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"
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user