Subject: Remove a sleep on xpp firmware loading
Author: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Forwarded: no

Newer xpp udev rules are simpler and work well for newer kernels. Sadly they
leave a problem with some older systems (e.g. CentOS 5, using 2.6.18).

As a workaround, the firmware loading was moved to the a background
sub-process (which is generally a good idea) and a 'sleep 1' was added to
allow the device file to be created. This sleep is not needed in Lenny and
Squeeze systems. Hence this patch converts it to a 'sleep 0'.

--- a/xpp/xpp_fxloader
+++ b/xpp/xpp_fxloader
@@ -67,7 +67,7 @@ USB_PREFIX=
 FIRMWARE_DIR="${FIRMWARE_DIR:-/usr/share/dahdi}"
 ASTRIBANK_HEXLOAD=${ASTRIBANK_HEXLOAD:-/usr/sbin/astribank_hexload}
 ASTRIBANK_TOOL=${ASTRIBANK_TOOL:-/usr/sbin/astribank_tool}
-XPP_UDEV_SLEEP_TIME="${XPP_UDEV_SLEEP_TIME:-1}"
+XPP_UDEV_SLEEP_TIME="${XPP_UDEV_SLEEP_TIME:-0}"
 
 USB_FW="${USB_FW:-USB_FW.hex}"
 
