cvs commit: patches/hotplug hotplug-2004_04_01-bogus-deps-1.patch

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Thu May 13 22:57:00 PDT 2004


tushar      04/05/13 23:57:00

  Added:       hotplug  hotplug-2004_04_01-bogus-deps-1.patch
  Log:
  Added Patch: hotplug-2004_04_01-bogus-deps-1.patch
  
  Revision  Changes    Path
  1.1                  patches/hotplug/hotplug-2004_04_01-bogus-deps-1.patch
  
  Index: hotplug-2004_04_01-bogus-deps-1.patch
  ===================================================================
  Submitted By: Alexander E. Patrakov
  Date: 2004-05-13
  Initial Package Version: 2004_04_01
  Upstream Status: will send a copy to linux-hotplug-devel at lists.sourceforge.net
  Origin: Alexander E. Patrakov
  Description: Removes bogus dependency upon "which" and "usbmodules"
  programs in 2.6 code path
  
  --- hotplug-2004_04_01/etc/hotplug/usb.rc.old	2004-05-13 20:42:25.596236912 +0600
  +++ hotplug-2004_04_01/etc/hotplug/usb.rc	2004-05-13 20:43:09.296593448 +0600
  @@ -73,12 +73,6 @@
   	#
   
   	# synthesize hotplug events if we can 
  -	# we need (non-bash) programs to parse descriptors.
  -	LISTER=`which usbmodules`
  -	if [ "$LISTER" = "" -o ! -f /proc/bus/usb/devices ]; then
  -		echo $"** can't synthesize root hub events"
  -		return
  -	fi
   
   	# make sure the usb agent will run
   	ACTION=add
  @@ -113,6 +107,12 @@
   		done
   	    fi
   	else
  +    	    # we need (non-bash) programs to parse descriptors.
  +	    LISTER=`which usbmodules`
  +	    if [ "$LISTER" = "" -o ! -f /proc/bus/usb/devices ]; then
  +		echo $"** can't synthesize root hub events"
  +		return
  +	    fi
   	    for DEVICE in /proc/bus/usb/*/*; do
   		/etc/hotplug/usb.agent
   	    done
  
  
  
  



More information about the patches mailing list