website: fix typo, add hidden-features (#349)

This commit is contained in:
Ylarod
2023-04-05 14:36:22 +08:00
committed by GitHub
parent c96b0e8f8b
commit 7544558173
5 changed files with 17 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ function sidebarGuide() {
{ text: 'Module Guide', link: '/guide/module.md' }, { text: 'Module Guide', link: '/guide/module.md' },
{ text: 'Rescue from bootloop', link: '/guide/rescue-from-bootloop.md' }, { text: 'Rescue from bootloop', link: '/guide/rescue-from-bootloop.md' },
{ text: 'FAQ', link: '/guide/faq' }, { text: 'FAQ', link: '/guide/faq' },
{ text: 'Hidden features', link: '/guide/hidden-features' },
] ]
} }
] ]

View File

@@ -53,6 +53,7 @@ function sidebarGuide() {
{ text: '模块开发指南', link: '/zh_CN/guide/module.md' }, { text: '模块开发指南', link: '/zh_CN/guide/module.md' },
{ text: '救砖', link: '/zh_CN/guide/rescue-from-bootloop.md' }, { text: '救砖', link: '/zh_CN/guide/rescue-from-bootloop.md' },
{ text: '常见问题', link: '/zh_CN/guide/faq' }, { text: '常见问题', link: '/zh_CN/guide/faq' },
{ text: '隐藏功能', link: '/zh_CN/guide/hidden-features' },
] ]
} }
] ]

View File

@@ -0,0 +1,7 @@
# Hidden Features
## .ksurc
By default, `/system/bin/sh` loads `/system/etc/mkshrc`.
You can make su load customized rc file by creating a `/data/adb/ksu/.ksurc` file.

View File

@@ -0,0 +1,7 @@
# 隐藏功能
## ksurc
默认情况下,`/system/bin/sh` 会加载 `/system/etc/mkshrc`
可以通过创建 `/data/adb/ksu/.ksurc` 文件来让 su 加载该文件而不是 `/system/etc/mkshrc`

View File

@@ -60,7 +60,7 @@ KernelSU 模块就是一个放置在 `/data/adb/modules` 内且满足如下结
│ │ │ │
│ ├── post-fs-data.sh <--- 这个脚本将会在 post-fs-data 模式下运行 │ ├── post-fs-data.sh <--- 这个脚本将会在 post-fs-data 模式下运行
│ ├── service.sh <--- 这个脚本将会在 late_start 服务模式下运行 │ ├── service.sh <--- 这个脚本将会在 late_start 服务模式下运行
| ├── uninstall.sh <--- 这个脚本将会在模块被卸载运行 | ├── uninstall.sh <--- 这个脚本将会在模块被卸载运行
│ ├── system.prop <--- 这个文件中指定的属性将会在系统启动时通过 resetprop 更改 │ ├── system.prop <--- 这个文件中指定的属性将会在系统启动时通过 resetprop 更改
│ ├── sepolicy.rule <--- 这个文件中的 SELinux 策略将会在系统启动时加载 │ ├── sepolicy.rule <--- 这个文件中的 SELinux 策略将会在系统启动时加载
│ │ │ │