install updates - path errors fixed

This commit is contained in:
Brad Stein 2025-11-30 18:01:54 -03:00
parent d2677afc46
commit e223d90db4
2 changed files with 8 additions and 5 deletions

View File

@ -163,16 +163,15 @@ done
# ── 4. VideoControl interface ─────────────────────────────────────
mkdir -p "$F/control/header/h" # real dir mandatory
mkdir -p "$F/control/class" # parent once
mkdir -p "$F/control/class/fs" "$F/control/class/hs" "$F/control/class/ss"
echo "[lesavka-core] ★ directory tree just before links:"
tree -L 3 "$F/control" | sed 's/^/[lesavka-core] /'
for s in fs hs ss; do
# ensure the perspeed dir exists (created by kernel)
mkdir -p "$F/control/class/$s" # harmless if already there
# create the mandatory *symlink inside* that directory:
ln -snf ../../header/h "$F/control/class/$s/h"
mkdir -p "$F/control/class/$s"
# use absolute path to avoid relative path issues under configfs
ln -snf "$F/control/header/h" "$F/control/class/$s/h"
done
for s in fs hs ss; do

View File

@ -43,6 +43,10 @@ if ! command -v yay >/dev/null 2>&1; then
fi
# yay -S --noconfirm grpcurl-bin
echo "==> 1c. GPIO permissions for relay"
echo 'z /dev/gpiochip* 0660 root gpio -' | sudo tee /etc/tmpfiles.d/gpiochip.conf >/dev/null
sudo systemd-tmpfiles --create /etc/tmpfiles.d/gpiochip.conf || true
echo "==> 2a. Kernel-driver tweaks"
cat <<'EOF' | sudo tee /etc/modprobe.d/gc311-stream.conf >/dev/null
options uvcvideo quirks=0x200 timeout=10000