Revert ""Reset usb on boot" add sleep, since we can't seem to detect the initial usb detection is still active...."

This reverts commit a0fb31c652386ef6d4f161950bf8a79c87035624.
This commit is contained in:
Ad Schellevis 2019-02-27 12:21:10 +01:00
parent 464996af84
commit f5dade45cc

View File

@ -4,9 +4,6 @@ USB_RESET_ON="<usbconfig_reset>1</usbconfig_reset>"
if [ -f /conf/config.xml ]; then
if [ "$(grep -c "${USB_RESET_ON}" /conf/config.xml)" != "0" ]; then
# XXX: suboptiomal, it seems impossible to detect if usb probe during boot is actually finished.
sleep 10
/usr/sbin/usbconfig reset >/dev/null 2>&1
exit 0
fi
fi