Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p7020_usb')
-rw-r--r--mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p7020_usb10
1 files changed, 4 insertions, 6 deletions
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p7020_usb b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p7020_usb
index d8c3d82b..6f299d7f 100644
--- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p7020_usb
+++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p7020_usb
@@ -1,15 +1,13 @@
if [ "$cfg_usb_host" != "y" ]; then
switchToUsbDevice
else
- switchToUsbHost
-
- # the usb driver needs about 3 seconds to initialize
- sleep 3
-
+ # the usb driver needs some time to initialize
+ sleep 1
+
if [ -z "$(lsusb | grep -v "1d6b:0001")" ]; then
switchToUsbDevice
else
checkUsbStorage
fi
-
+
fi