KernelSU-Next + SuSFS 1.5.3 Patched

This commit is contained in:
Phapoom Saksri 2024-12-28 20:42:59 +07:00
parent 1589ebebbd
commit 157e80e925
32 changed files with 1677 additions and 22 deletions

View file

@ -4,9 +4,9 @@ exec 9>.kernelsu-fetch-lock
flock -n 9 || exit 0
[[ $(( $(date +%s) - $(stat -c %Y "drivers/kernelsu/.check" 2>/dev/null || echo 0) )) -gt 86400 ]] || exit 0
AUTHOR="xxmustafacooTR"
REPO="KernelSU"
VERSION=`curl -s -I -k "https://api.github.com/repos/$AUTHOR/$REPO/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'`
AUTHOR="rifsxd"
REPO="KernelSU-Next"
VERSION=`curl -s -I -k "https://api.github.com/repos/$AUTHOR/$REPO/commits?sha=next-susfs-4.9&per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'`
if [[ -f drivers/kernelsu/.version && *$(cat drivers/kernelsu/.version)* == *$VERSION* ]]; then
touch drivers/kernelsu/.check
@ -17,7 +17,7 @@ fi
rm -rf drivers/kernelsu
mkdir -p drivers/kernelsu
cd drivers/kernelsu
wget -q -O - https://github.com/$AUTHOR/$REPO/archive/refs/heads/main.tar.gz | tar -xz --strip=2 "$REPO-main/kernel"
wget -q -O - https://github.com/$AUTHOR/$REPO/archive/refs/heads/next-susfs-4.9.tar.gz | tar -xz --strip=2 "$REPO-next-susfs-4.9/kernel"
echo $VERSION >> .version
touch .check