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