From 5d3dbe55c1efe8aeb4620e802260d239d283cccb Mon Sep 17 00:00:00 2001 From: mofeng <3285338098@qq.com> Date: Sat, 25 Nov 2023 23:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 28cfb55e..a3be8d6c 100755 --- a/install.sh +++ b/install.sh @@ -9,8 +9,14 @@ if [[ "$PYVER" != *"3.10"* && $(which python3.10) != *"python"* ]]; then fi cp ./patch/meson8b-onecloud.dtb /boot/dtb/meson8b-onecloud.dtb && echo "设备树文件覆盖成功!" -#此为危险操作,同时会覆盖MBR分区,请在没有自行分区前执行,否则会丢失分区数据导致挂载了EMMC其他分区的系统无法启动! -gzip -dc ./patch/Boot_SkipUSBBurning.gz | dd of=/dev/mmcblk1 && echo "覆盖引导成功!" + +#此为危险操作,会覆盖MBR分区,请在没有自行分区前执行,否则会丢失分区数据导致挂载了EMMC其他分区的系统无法启动! +if [ -f "./installed.txt" ]; then + gzip -dc ./patch/Boot_SkipUSBBurning.gz | dd of=/dev/mmcblk1 && echo "One-KVM V0.4" >> installed.txt && echo "覆盖引导成功!" +else + echo "已跳过覆盖引导!" +fi + bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --source mirrors.tuna.tsinghua.edu.cn --updata-software false --web-protocol http && echo "换源成功!" echo "正在安装依赖软件nginx tesseract-ocr tesseract-ocr-eng janus libevent-dev libgpiod-dev tesseract-ocr-chi-sim......"