fix: 摄像头亮度默认夜间

This commit is contained in:
2026-04-11 20:00:57 +08:00
parent f00d6661c0
commit 9009107a64
5 changed files with 202 additions and 3 deletions

View File

@@ -22,8 +22,13 @@ if [[ ! -x "./bin/b_side_omnid" ]]; then
make b_side_omnid
fi
launch_b_side_omnid() {
bash "${SCRIPT_DIR}/apply-camera-controls.sh"
exec ./bin/b_side_omnid
}
if [[ "${B_SIDE_OMNID_USE_SUDO}" == "1" && "${EUID}" -ne 0 ]]; then
exec sudo -E ./bin/b_side_omnid
exec sudo -E bash -lc 'cd "$1" && bash "$2" && exec "$3"' _ "${OMNISOCKETGO_ROOT}" "${SCRIPT_DIR}/apply-camera-controls.sh" "./bin/b_side_omnid"
fi
exec ./bin/b_side_omnid
launch_b_side_omnid