File: 006_hotplug_usb_wait

package info (click to toggle)
hotplug 0.0.20040329-22
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 448 kB
  • ctags: 22
  • sloc: sh: 671; makefile: 183
file content (21 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ruN hotplug-2004_01_05.orig/etc/hotplug/usb.agent hotplug-2004_01_05/etc/hotplug/usb.agent
--- hotplug-2004_01_05.orig/etc/hotplug/usb.agent	2004-02-03 00:36:16.000000000 +0100
+++ hotplug-2004_01_05/etc/hotplug/usb.agent	2004-02-03 00:33:02.000000000 +0100
@@ -74,6 +74,8 @@
 # $Id: usb.agent,v 1.35 2003/10/13 23:52:54 kroah Exp $
 #
 
+HOTPLUG_USB_WAIT=3
+
 if [ -f /etc/default/hotplug ]; then
     . /etc/default/hotplug
 fi
@@ -355,7 +357,7 @@
     # with slow HID devices and "usbmodules".
     # starting with 2.5 (DEVPATH set), all hcds must queue control traffic.
     if [ "$DEVPATH" = "" ]; then
-	sleep 3
+	sleep $HOTPLUG_USB_WAIT
     fi
 
     usb_convert_vars