fixing daemon for cam

This commit is contained in:
Brad Stein 2025-07-04 12:33:15 -05:00
parent 8b2336e753
commit 07dbe15d9f

View File

@ -132,11 +132,15 @@ echo 333333 >"$F/streaming/uncompressed/u/f1/dwDefaultFrameInterval" # 30fp
echo 333333 >"$F/streaming/uncompressed/u/f1/dwFrameInterval"
# 3. REQUIRED HEADER LINKS ────────────────────────────────────────
mkdir -p "$F/streaming/header/h"
ln -sf ../../uncompressed/u "$F/streaming/header/h/1" # first format
echo 1 > "$F/streaming/header/h/bNumFormats" # exactly one format
mkdir -p "$F/control/header"
ln -sf ../../streaming/header/h "$F/control/header" # expose to control
# (1) Streaminginterface header
rm -rf "$F/streaming/header" # in case a bad symlink is still there
mkdir -p "$F/streaming/header/h" # «h» MUST be a real directory
ln -sf ../../uncompressed/u "$F/streaming/header/h/1" # numeric link → format dir
# (2) Controlinterface header must point back to the streaming header
rm -rf "$F/control/header" # idem
mkdir -p "$F/control/header"
ln -sf ../../streaming/header/h "$F/control/header/h"
# Friendly string
mkdir -p "$F/control/header/strings/0x409"