Skip to content

Commit 4ad42bf

Browse files
dabao1955backslashxx
authored andcommitted
website: fix selected kernelsu version on non-gki steps (tiann#1848)
1 parent 49ba7b4 commit 4ad42bf

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

website/docs/guide/how-to-integrate-for-non-gki.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,10 @@ If kprobe does not work in your kernel (may be an upstream or kernel bug below 4
5555

5656
First, add KernelSU to your kernel source tree:
5757

58-
::: code-group
59-
60-
```sh[Latest tag(stable)]
61-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
62-
```
63-
64-
```sh[ main branch(dev)]
65-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s main
66-
```
67-
68-
```sh[Select tag(Such as v0.5.2)]
69-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.5.2
58+
```sh
59+
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.9.5
7060
```
7161

72-
:::
73-
7462
Keep in mind that on some devices, your defconfig may be in `arch/arm64/configs` or in other cases `arch/arm64/configs/vendor/your_defconfig`. For whichever defconfig you're using, make sure to enable `CONFIG_KSU` with `y` to enable or `n` to disable it. For example, in case you chose to enable it, you defconfig should contain the following string:
7563

7664
```txt

website/docs/zh_CN/guide/how-to-integrate-for-non-gki.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ CONFIG_KPROBE_EVENTS=y
5151
首先,把 KernelSU 添加到你的内核源码树,在内核的根目录执行以下命令:
5252

5353
```sh
54-
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
54+
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.9.5
5555
```
5656

5757
请注意,某些设备的defconfig文件可能在`arch/arm64/configs/设备代号_defconfig`或位于`arch/arm64/configs/vendor/设备代号_defconfig`。在您的defconfig文件中,将 `CONFIG_KSU`设置为`y`以启用KernelSU,或设置为`n`以禁用。比如在某个defconfig中:

0 commit comments

Comments
 (0)