usb fix
This commit is contained in:
parent
29933a685e
commit
0615992d9b
@ -164,10 +164,8 @@ mkdir -p "$F/control/header/h" # real dir – mandatory
|
|||||||
mkdir -p "$F/control/class" # parent once
|
mkdir -p "$F/control/class" # parent once
|
||||||
|
|
||||||
for s in fs hs ss; do
|
for s in fs hs ss; do
|
||||||
tgt="$F/control/class/$s"
|
mkdir -p "$F/control/class/$s" # make sure the dir exists
|
||||||
# If an earlier crash left a *directory* here, remove it first
|
ln -snf ../../header/h "$F/control/class/$s/h"
|
||||||
if [ -d "$tgt" ] && [ ! -L "$tgt" ]; then rmdir "$tgt"; fi
|
|
||||||
ln -snf ../header/h "$tgt" # symlink replaces/creates
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# optional: hide unsupported controls
|
# optional: hide unsupported controls
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user