From e65f66957fcb2a1bd234f62b2a0f48057c9fc12e Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Jul 24 2009 12:22:35 +0000 Subject: - Tell udevd to replay printer add events in the initscript. --- diff --git a/cups.init b/cups.init index a79e9c5..44357e9 100644 --- a/cups.init +++ b/cups.init @@ -60,6 +60,13 @@ start () { RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/cups + + udevadm trigger --subsystem-match=usb \ + --attr-match=bInterfaceClass=07 \ + --attr-match=bInterfaceSubClass=01 &>/dev/null || : + udevadm trigger --subsystem-match=usb \ + --property-match=DEVNAME="/dev/usb/lp*" &>/dev/null || : + return 0 } diff --git a/cups.spec b/cups.spec index cd8f181..52868e7 100644 --- a/cups.spec +++ b/cups.spec @@ -10,7 +10,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.4 -Release: 0.%{pre}.10%{?dist} +Release: 0.%{pre}.11%{?dist} License: GPLv2 Group: System Environment/Daemons Source: ftp://ftp.easysw.com/pub/cups/test//cups-%{version}%{?pre}%{?svn}-source.tar.bz2 @@ -503,6 +503,9 @@ rm -rf $RPM_BUILD_ROOT %{php_extdir}/phpcups.so %changelog +* Fri Jul 24 2009 Tim Waugh 1:1.4-0.rc1.11 +- Tell udevd to replay printer add events in the initscript. + * Wed Jul 15 2009 Tim Waugh 1:1.4-0.rc1.10 - Applied patch to prevent bad job control files crashing cupsd on start-up (STR #3253, bug #509741).