feat: 更新设备配置和服务依赖

- 在 devices.sh 中启用 rc-local.service,以确保 kvmd 服务的正常运行
- 更新 ustreamer 配置,修正音频设备参数
- 修改 kvmd.service 文件,添加对 rc-local.service 的依赖
This commit is contained in:
mofeng-git 2025-09-28 23:43:04 +08:00
parent edb9112435
commit 9373790f37
3 changed files with 6 additions and 2 deletions

View File

@ -383,6 +383,10 @@ exit 0
EOF"
run_in_chroot "chmod +x /etc/rc.local"
# 确保 rc-local.service 被启用,以便 kvmd 服务可以依赖它
echo "信息:启用 rc-local.service 服务..."
run_in_chroot "systemctl enable rc-local.service"
# 替换 DTB 文件
replace_oec_turbo_dtb

View File

@ -2,6 +2,6 @@ video: {
sink = "kvmd::ustreamer::h264"
}
acap: {
device = "hw:0"
device = "hw:0,0"
tc358743 = "/dev/video0"
}

View File

@ -1,6 +1,6 @@
[Unit]
Description=One-KVM - The main daemon
After=network.target network-online.target nss-lookup.target
After=network.target network-online.target nss-lookup.target rc-local.service
[Service]
User=kvmd