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