diff --git a/docs/README.md b/docs/README.md index 3e99c1e8cd33..822291106632 100644 --- a/docs/README.md +++ b/docs/README.md @@ -12,6 +12,16 @@ A Kernel-based root solution for Android devices. [![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-orange.svg?logo=gnu)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) [![GitHub License](https://img.shields.io/github/license/tiann/KernelSU?logo=gnu)](/LICENSE) +## How to add + +```sh +curl -LSs "https://raw.githubusercontent.com/rsuntk/KernelSU/main/kernel/setup.sh" | bash -s main +``` + +## How to integrate + +https://kernelsu.org/guide/how-to-integrate-for-non-gki.html + ## Features 1. Kernel-based `su` and root access management. diff --git a/kernel/ksu.c b/kernel/ksu.c index 3639edc21503..f20a86c40854 100644 --- a/kernel/ksu.c +++ b/kernel/ksu.c @@ -95,6 +95,9 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("weishu"); MODULE_DESCRIPTION("Android KernelSU"); +/* Fix `MODULE_IMPORT_NS` err */ +#include + #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); #endif diff --git a/kernel/setup.sh b/kernel/setup.sh index e688dbaf3ae5..a2f1858d932e 100755 --- a/kernel/setup.sh +++ b/kernel/setup.sh @@ -39,7 +39,7 @@ perform_cleanup() { # Sets up or update KernelSU environment setup_kernelsu() { echo "[+] Setting up KernelSU..." - test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/tiann/KernelSU && echo "[+] Repository cloned." + test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/rsuntk/KernelSU && echo "[+] Repository cloned." cd "$GKI_ROOT/KernelSU" git stash && echo "[-] Stashed current changes." if [ "$(git status | grep -Po 'v\d+(\.\d+)*' | head -n1)" ]; then