hplip/hplip-apply-udev-rules-on-action-change.patch
2013-04-15 09:59:51 +04:00

50 lines
2.2 KiB
Diff

Index: hplip-3.12.6/data/rules/40-hplip.rules
===================================================================
--- hplip-3.12.6/data/rules/40-hplip.rules
+++ hplip-3.12.6/data/rules/40-hplip.rules 2012-09-19 22:33:00.601844136 +0200
@@ -4,7 +4,7 @@
# For older distros that use HAL ACL support use the 55-hpmud.rules.
#
-ACTION!="add", GOTO="hpmud_rules_end"
+ACTION=="remove", GOTO="hpmud_rules_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
Index: hplip-3.12.6/data/rules/55-hpmud.rules
===================================================================
--- hplip-3.12.6/data/rules/55-hpmud.rules
+++ hplip-3.12.6/data/rules/55-hpmud.rules 2012-09-19 22:33:00.601844136 +0200
@@ -13,7 +13,7 @@
# changes are not distro specific please send your patch to us. 2/11/2009, D Suffield
#
-ACTION!="add", GOTO="hpmud_rules_end"
+ACTION=="remove", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0660"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hplip_pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
Index: hplip-3.12.6/data/rules/56-hpmud_support.rules
===================================================================
--- hplip-3.12.6/data/rules/56-hpmud_support.rules
+++ hplip-3.12.6/data/rules/56-hpmud_support.rules 2012-09-19 22:33:00.601844136 +0200
@@ -1,6 +1,6 @@
# HPLIP udev rules file. Notify console user if plugin support is required for this device.
-ACTION!="add", GOTO="hpmud_rules_end"
+ACTION=="remove", GOTO="hpmud_rules_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
Index: hplip-3.12.6/data/rules/86-hpmud_plugin.rules
===================================================================
--- hplip-3.12.6/data/rules/86-hpmud_plugin.rules
+++ hplip-3.12.6/data/rules/86-hpmud_plugin.rules 2012-09-19 22:33:00.601844136 +0200
@@ -1,6 +1,6 @@
# Load hp firmware for this printer.
-ACTION!="add", GOTO="hpmud_rules_end"
+ACTION=="change", GOTO="hpmud_rules_end"
#Check and add printer for Suse 10.3 distro
# hp_Marvel_Device (These printer requires the plugin files. installling when device is detected)