From 259051906c6e7e74b60598393eba66c18e315cee Mon Sep 17 00:00:00 2001 From: elseif Date: Sat, 23 Aug 2025 04:40:09 +0800 Subject: [PATCH] Update chr_busybox.sh Signed-off-by: elseif --- chr_busybox.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chr_busybox.sh b/chr_busybox.sh index ad7f638..c3a1018 100644 --- a/chr_busybox.sh +++ b/chr_busybox.sh @@ -1,6 +1,12 @@ #!/bin/sh set -e -wget --no-check-certificate -O /tmp/chr.img.zip https://gh-proxy.com/https://github.com/elseif/MikroTikPatch/releases/download/7.19.4/chr-7.19.4-legacy-bios.img.zip +if [ -d /sys/firmware/efi ]; then + echo "System boot mode: UEFI" + wget --no-check-certificate -O /tmp/chr.img.zip https://gh-proxy.com/https://github.com/elseif/MikroTikPatch/releases/download/7.19.4/chr-7.19.4.img.zip +else + echo "System boot mode: BIOS/MBR" + wget --no-check-certificate -O /tmp/chr.img.zip https://gh-proxy.com/https://github.com/elseif/MikroTikPatch/releases/download/7.19.4/chr-7.19.4-legacy-bios.img.zip +fi cd /tmp unzip -p chr.img.zip > chr.img