From aefda92b20022ee509a2ba3fa12ccf46ac3f2d33 Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Tue, 6 Jun 2023 22:18:01 +0800 Subject: [PATCH] Drop KernelSU support for WSA version lower than 2303 https://github.com/tiann/KernelSU/commit/5003824fa8b215ac7532431ea2e1d10fb7d87e76 --- scripts/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 320b37c..17c185f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -479,12 +479,12 @@ update_gapps_zip_name() { } WSA_MAIN_VER=0 update_ksu_zip_name() { - KERNEL_VER="5.10.117.2" - if [ "$WSA_MAIN_VER" -ge "2303" ]; then - KERNEL_VER="5.15.78.1" + KERNEL_VER="5.15.78.1" + if [ "$WSA_MAIN_VER" -lt "2303" ]; then + abort "KernelSU is not supported on WSA version below 2303" fi if [ "$WSA_MAIN_VER" -ge "2304" ]; then - KERNEL_VER="5.15.94.1" + KERNEL_VER="5.15.94.4" fi KERNELSU_ZIP_NAME=kernelsu-$ARCH-$KERNEL_VER.zip KERNELSU_PATH=$DOWNLOAD_DIR/$KERNELSU_ZIP_NAME