From 6934bf864589828e126c49e8486ef01b6e7df288 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 4 Jul 2025 13:09:07 -0500 Subject: [PATCH] fixing daemon for cam --- scripts/daemon/lesavka-core.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/daemon/lesavka-core.sh b/scripts/daemon/lesavka-core.sh index a583588..2dae9b3 100644 --- a/scripts/daemon/lesavka-core.sh +++ b/scripts/daemon/lesavka-core.sh @@ -131,16 +131,16 @@ echo 1843200 >"$F/streaming/uncompressed/u/f1/dwMaxVideoFrameBufferSize" echo 333333 >"$F/streaming/uncompressed/u/f1/dwDefaultFrameInterval" # 30 fps echo 333333 >"$F/streaming/uncompressed/u/f1/dwFrameInterval" -# 3. REQUIRED HEADER LINKS ──────────────────────────────────────── -# (1) Streaming‑interface 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 +# ── 3. REQUIRED HEADER LINKS ────────────────────────────────────── +# (1) create the header directories ──┐ +mkdir -p "$F/streaming/header/h" # │ ‘h’ is a *directory*, not a symlink +mkdir -p "$F/control/header/h" # ┘ -# (2) Control‑interface 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" +# (2) link the format into the streaming header (index “1”) +ln -sf ../../uncompressed/u "$F/streaming/header/h/1" + +# (3) link the streaming header into the control interface +ln -sf ../../streaming/header/h "$F/control/header/h/1" # Friendly string mkdir -p "$F/control/header/strings/0x409"