udev: pull in printer.target from all kinds of printers

This commit is contained in:
Lennart Poettering 2011-07-05 03:27:14 +02:00
parent 7862f62de3
commit 5db35d0672
2 changed files with 6 additions and 5 deletions

6
TODO
View file

@ -23,6 +23,8 @@ F15 External:
Features: Features:
* wildcard support for .path units (think CUPS spool directory!)
* kernel: add /proc/sys file exposing CAP_LAST_CAP? * kernel: add /proc/sys file exposing CAP_LAST_CAP?
* kernel: add device_type = "fb", "fbcon" to class "graphics" * kernel: add device_type = "fb", "fbcon" to class "graphics"
@ -39,8 +41,6 @@ Features:
when we start a service in order to avoid confusion when a user when we start a service in order to avoid confusion when a user
assumes starting a service is enough to make it accessible assumes starting a service is enough to make it accessible
* drop -lrt req for sd-daemon.[ch]
* Make it possible to set the keymap independently from the font on * Make it possible to set the keymap independently from the font on
the kernel cmdline. Right now setting one resets also the other. the kernel cmdline. Right now setting one resets also the other.
@ -52,8 +52,6 @@ Features:
* add dbus call to convert snapshot into target * add dbus call to convert snapshot into target
* move /selinux to /sys/fs/selinux
* detect LXC with $container=lxc * detect LXC with $container=lxc
* add prefix match to sysctl, tmpfiles, ... * add prefix match to sysctl, tmpfiles, ...

View file

@ -32,8 +32,11 @@ SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsyst
SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluetooth/devices/%k" SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluetooth/devices/%k"
SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target" SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target"
SUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
ENV{ID_SMARTCARD_READER}=="*?", TAG+="systemd", ENV{SYSTEMD_WANTS}="smartcard.target" ENV{ID_SMARTCARD_READER}=="*?", TAG+="systemd", ENV{SYSTEMD_WANTS}="smartcard.target"
SUBSYSTEM=="sound", KERNEL=="card*", TAG+="systemd", ENV{SYSTEMD_WANTS}="sound.target" SUBSYSTEM=="sound", KERNEL=="card*", TAG+="systemd", ENV{SYSTEMD_WANTS}="sound.target"
SUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701*:", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
LABEL="systemd_end" LABEL="systemd_end"