File: 70-printers.rules

package info (click to toggle)
system-config-printer 1.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 9,808 kB
  • ctags: 1,909
  • sloc: python: 18,200; sh: 4,240; ansic: 1,100; makefile: 290; xml: 152
file content (7 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", RUN+="udev-configure-printer add %p"
# usblp device add trigger (needed when usblp is already loaded)
ACTION=="add", KERNEL=="lp*", RUN+="udev-configure-printer add %p"

# Low-level USB device remove trigger
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:0701*:*", RUN+="udev-configure-printer remove %p"