From f3cf69f1f57ee52cfce2746876fae975fb87eedc Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 30 Aug 2007 15:27:19 +0000 Subject: [PATCH] - Updated udev rules to allow scanning by console user. --- hplip-udev-rules.patch | 8 +++++--- hplip.spec | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hplip-udev-rules.patch b/hplip-udev-rules.patch index 6f60a10..449caab 100644 --- a/hplip-udev-rules.patch +++ b/hplip-udev-rules.patch @@ -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" diff --git a/hplip.spec b/hplip.spec index d540860..f096610 100644 --- a/hplip.spec +++ b/hplip.spec @@ -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 2.7.7-3 +- Updated udev rules to allow scanning by console user. + * Wed Aug 29 2007 Tim Waugh 2.7.7-2 - Better buildroot tag. - More specific license tag.