kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'fix-udev-rules' into 'master'
Trigger udev rules parsing on all kernel events except of "remove". See merge request sane-project/backends!541merge-requests/576/merge
commit
63d938de61
|
@ -23,7 +23,7 @@
|
|||
# If the scanner is supported by sane-backends, please mail the entry to
|
||||
# the sane-devel mailing list (sane-devel@alioth-lists.debian.net).
|
||||
#
|
||||
ACTION!="add", GOTO="libsane_rules_end"
|
||||
ACTION=="remove", GOTO="libsane_rules_end"
|
||||
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
|
||||
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
|
||||
SUBSYSTEM=="usb_device", GOTO="libsane_usb_rules_begin"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
# If the scanner is supported by sane-backends, please mail the entry to
|
||||
# the sane-devel mailing list (sane-devel@alioth-lists.debian.net).
|
||||
#
|
||||
ACTION!="add", GOTO="libsane_rules_end"
|
||||
ACTION=="remove", GOTO="libsane_rules_end"
|
||||
|
||||
# The following rule will disable USB autosuspend for the device
|
||||
ENV{DEVTYPE}=="usb_device", ENV{libsane_matched}=="yes", TEST=="power/control", ATTR{power/control}="on"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
# If the scanner is supported by sane-backends, please mail the entry to
|
||||
# the sane-devel mailing list (sane-devel@alioth-lists.debian.net).
|
||||
#
|
||||
ACTION!="add", GOTO="libsane_rules_end"
|
||||
ACTION=="remove", GOTO="libsane_rules_end"
|
||||
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
|
||||
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
|
||||
SUBSYSTEM=="usb_device", GOTO="libsane_usb_rules_begin"
|
||||
|
|
|
@ -3496,7 +3496,7 @@ print_udev (void)
|
|||
int i;
|
||||
|
||||
print_udev_header ();
|
||||
printf("ACTION!=\"add\", GOTO=\"libsane_rules_end\"\n"
|
||||
printf("ACTION==\"remove\", GOTO=\"libsane_rules_end\"\n"
|
||||
"ENV{DEVTYPE}==\"usb_device\", GOTO=\"libsane_create_usb_dev\"\n"
|
||||
"SUBSYSTEMS==\"scsi\", GOTO=\"libsane_scsi_rules_begin\"\n"
|
||||
"SUBSYSTEM==\"usb_device\", GOTO=\"libsane_usb_rules_begin\"\n"
|
||||
|
@ -3679,7 +3679,7 @@ print_udevhwdb (void)
|
|||
int i;
|
||||
|
||||
print_udevhwdb_header ();
|
||||
printf("ACTION!=\"add\", GOTO=\"libsane_rules_end\"\n\n");
|
||||
printf("ACTION==\"remove\", GOTO=\"libsane_rules_end\"\n\n");
|
||||
|
||||
printf("# The following rule will disable USB autosuspend for the device\n");
|
||||
printf("ENV{DEVTYPE}==\"usb_device\", ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n\n");
|
||||
|
|
Ładowanie…
Reference in New Issue