File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,9 @@ config_octopus_flanet_files() {
331331 download_file_if_missing " $config_file " || echo " 警告:下载 Octopus-Planet 配置文件失败"
332332
333333 sudo cp " $config_file " " $ROOTFS /etc/model_database.conf" || echo " 警告:复制 model_database.conf 失败"
334+
335+ echo " 信息:为 Octopus-Planet 添加 DRM 设备支持..."
336+ run_in_chroot " sed -i \" /--device=\\ /dev\\ /video0/a\\ - \\\" --drm-device=/dev/dri/card0\\\"\" /etc/kvmd/override.yaml"
334337}
335338
336339config_orangepi_zero_files () {
@@ -344,13 +347,14 @@ config_orangepi_zero_files() {
344347
345348config_onecloud_pro_files () {
346349 echo " 信息:配置 Onecloud Pro 特定文件..."
347- echo " 信息:Onecloud Pro 特定配置完成。"
350+
351+ echo " 信息:为 Onecloud Pro 添加 DRM 设备支持..."
352+ run_in_chroot " sed -i \" /--device=\\ /dev\\ /video0/a\\ - \\\" --drm-device=/dev/dri/card0\\\"\" /etc/kvmd/override.yaml"
348353}
349354
350355config_onecloud_files () {
351356 echo " 信息:配置 Onecloud 特定文件..."
352357
353- # 在 ustreamer 命令中添加 DRM 设备配置
354358 echo " 信息:为 Onecloud 添加 DRM 设备支持..."
355359 run_in_chroot " sed -i \" /--device=\\ /dev\\ /video0/a\\ - \\\" --drm-device=/dev/dri/card1\\\"\" /etc/kvmd/override.yaml"
356360
You can’t perform that action at this time.
0 commit comments