This commit is contained in:
Brad Stein 2025-07-05 20:12:58 -05:00
parent 29933a685e
commit 0615992d9b

View File

@ -164,10 +164,8 @@ mkdir -p "$F/control/header/h" # real dir mandatory
mkdir -p "$F/control/class" # parent once
for s in fs hs ss; do
tgt="$F/control/class/$s"
# If an earlier crash left a *directory* here, remove it first
if [ -d "$tgt" ] && [ ! -L "$tgt" ]; then rmdir "$tgt"; fi
ln -snf ../header/h "$tgt" # symlink replaces/creates
mkdir -p "$F/control/class/$s" # make sure the dir exists
ln -snf ../../header/h "$F/control/class/$s/h"
done
# optional: hide unsupported controls