From f900c4bb5ae9af6e8d205076cf5a3158c35cb41a Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Wed, 27 Aug 2025 15:11:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=A0=BC=E5=BC=8F=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=B8=8D=E7=94=9F=E6=95=88=E5=92=8C=20ttyd=20?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/functions/install.sh | 6 ++++-- build/init.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build/functions/install.sh b/build/functions/install.sh index 62932815..a8694507 100755 --- a/build/functions/install.sh +++ b/build/functions/install.sh @@ -202,9 +202,11 @@ install_webterm() { local ttyd_arch="$arch" if [ "$arch" = "armhf" ]; then - ttyd_arch="armv7" + ttyd_arch="armhf" elif [ "$arch" = "amd64" ]; then - ttyd_arch="x86_64" # ttyd 通常用 x86_64 + ttyd_arch="x86_64" + elif [ "$arch" = "aarch64" ]; then + ttyd_arch="aarch64" fi echo "信息:在 chroot 环境中下载并安装 ttyd ($ttyd_arch)..." diff --git a/build/init.sh b/build/init.sh index faf7d23e..073f0f84 100755 --- a/build/init.sh +++ b/build/init.sh @@ -221,7 +221,7 @@ EOF fi if [ ! -z "$VIDEOFORMAT" ]; then - if sed -i "s/format=mjpeg/format=$VIDEOFORMAT/g" /etc/kvmd/override.yaml; then + if sed -i "s/--format=mjpeg/--format=$VIDEOFORMAT/g" /etc/kvmd/override.yaml; then log_info "视频输入格式已设置为 $VIDEOFORMAT" fi fi