website: fix typo, add hidden-features (#349)
This commit is contained in:
@@ -53,6 +53,7 @@ function sidebarGuide() {
|
||||
{ text: 'Module Guide', link: '/guide/module.md' },
|
||||
{ text: 'Rescue from bootloop', link: '/guide/rescue-from-bootloop.md' },
|
||||
{ text: 'FAQ', link: '/guide/faq' },
|
||||
{ text: 'Hidden features', link: '/guide/hidden-features' },
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -53,6 +53,7 @@ function sidebarGuide() {
|
||||
{ text: '模块开发指南', link: '/zh_CN/guide/module.md' },
|
||||
{ text: '救砖', link: '/zh_CN/guide/rescue-from-bootloop.md' },
|
||||
{ text: '常见问题', link: '/zh_CN/guide/faq' },
|
||||
{ text: '隐藏功能', link: '/zh_CN/guide/hidden-features' },
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
7
website/docs/guide/hidden-features.md
Normal file
7
website/docs/guide/hidden-features.md
Normal 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.
|
||||
7
website/docs/zh_CN/guide/hidden-features.md
Normal file
7
website/docs/zh_CN/guide/hidden-features.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# 隐藏功能
|
||||
|
||||
## ksurc
|
||||
|
||||
默认情况下,`/system/bin/sh` 会加载 `/system/etc/mkshrc`。
|
||||
|
||||
可以通过创建 `/data/adb/ksu/.ksurc` 文件来让 su 加载该文件而不是 `/system/etc/mkshrc`。
|
||||
@@ -60,7 +60,7 @@ KernelSU 模块就是一个放置在 `/data/adb/modules` 内且满足如下结
|
||||
│ │
|
||||
│ ├── post-fs-data.sh <--- 这个脚本将会在 post-fs-data 模式下运行
|
||||
│ ├── service.sh <--- 这个脚本将会在 late_start 服务模式下运行
|
||||
| ├── uninstall.sh <--- 这个脚本将会在模块被卸载是运行
|
||||
| ├── uninstall.sh <--- 这个脚本将会在模块被卸载时运行
|
||||
│ ├── system.prop <--- 这个文件中指定的属性将会在系统启动时通过 resetprop 更改
|
||||
│ ├── sepolicy.rule <--- 这个文件中的 SELinux 策略将会在系统启动时加载
|
||||
│ │
|
||||
|
||||
Reference in New Issue
Block a user