usb fix
This commit is contained in:
parent
a1d6728c59
commit
f04fc1c02a
@ -160,6 +160,7 @@ mkdir -p "$F/control/header/h" # real dir – must exist first
|
||||
|
||||
# The kernel may need a few ms to add class/{fs,hs,ss}; wait and link
|
||||
for s in fs hs ss; do
|
||||
mkdir -p "$F/control/class/$s"
|
||||
# give the kernel up to 0.5 s to create the directory
|
||||
for _ in {1..50}; do
|
||||
[[ -d "$F/control/class/$s" ]] && break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user