- Updated udev rules to allow scanning by console user.

This commit is contained in:
Tim Waugh 2007-08-30 15:27:19 +00:00
parent abc0159319
commit f3cf69f1f5
2 changed files with 9 additions and 4 deletions

View File

@ -1,12 +1,14 @@
--- hplip-2.7.6/55-hpmud.rules.udev-rules 2007-07-20 14:13:01.000000000 +0100
+++ hplip-2.7.6/55-hpmud.rules 2007-07-20 14:13:32.000000000 +0100
@@ -1,5 +1,7 @@
--- hplip-2.7.7/55-hpmud.rules.udev-rules 2007-05-17 17:48:16.000000000 +0100
+++ hplip-2.7.7/55-hpmud.rules 2007-08-09 10:22:42.000000000 +0100
@@ -1,5 +1,9 @@
# TODO: add PROGRAM rule for 7/xx/xx printer class interface
-SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
+SUBSYSTEM!="usb", GOTO="hpmud_rules_end"
+ATTR{devnum}!="?*", GOTO="hpmud_rules_end"
+ATTR{busnum}!="?*", GOTO="hpmud_rules_end"
+ENV{PHYSDEVDRIVER}=="usblp", GOTO="hpmud_rules_end"
ACTION!="add", GOTO="hpmud_rules_end"
-SYSFS{idVendor}=="03f0", GROUP="lp"
+SYSFS{idVendor}=="03f0", GROUP="lp", MODE="0664"
+SYSFS{idVendor}=="03f0", SYMLINK+="scanner-%k"
LABEL="hpmud_rules_end"

View File

@ -1,7 +1,7 @@
Summary: HP Linux Imaging and Printing Project
Name: hplip
Version: 2.7.7
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+ and MIT
Group: System Environment/Daemons
Conflicts: system-config-printer < 0.6.132
@ -271,6 +271,9 @@ fi
exit 0
%changelog
* Thu Aug 30 2007 Tim Waugh <twaugh@redhat.com> 2.7.7-3
- Updated udev rules to allow scanning by console user.
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 2.7.7-2
- Better buildroot tag.
- More specific license tag.