projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9097a55
)
Update from Bernd Porr. Sleeps only if the file is not there.
author
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 16 Feb 2004 14:02:19 +0000
(14:02 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 16 Feb 2004 14:02:19 +0000
(14:02 +0000)
etc/hotplug/usb/usbdux/usbdux
patch
|
blob
|
history
diff --git
a/etc/hotplug/usb/usbdux/usbdux
b/etc/hotplug/usb/usbdux/usbdux
index 1ce721098a53828d81ee696707e7add3e428e852..0e467a81b2df09b4bd0ccf917439d897b2badff7 100755
(executable)
--- a/
etc/hotplug/usb/usbdux/usbdux
+++ b/
etc/hotplug/usb/usbdux/usbdux
@@
-32,7
+32,17
@@
fi
# in 2.6 there might be a race condition between
# the usbdevfs and this hotplug script.
# Therefore we wait a bit to make sure that /proc/bus/usb/... is there.
+if ! [ -e $DEVICE ]; then
sleep 1
+fi
+#
+# If the device is still not existing probably the usbdevfs hasn't been
+# mounted.
+if ! [ -e $DEVICE ]; then
+ echo "usbdux hotplug: /proc/bus/usb/... does not exist"
+ echo "Please make sure that usbdevfs is mounted."
+ exit 1
+fi
#
#
# firmware upload into the usb device