From 7544558173d47744b15e569f0fdc24000b1dfdc3 Mon Sep 17 00:00:00 2001 From: Ylarod Date: Wed, 5 Apr 2023 14:36:22 +0800 Subject: [PATCH] website: fix typo, add hidden-features (#349) --- website/docs/.vitepress/locales/en.ts | 1 + website/docs/.vitepress/locales/zh_CN.ts | 1 + website/docs/guide/hidden-features.md | 7 +++++++ website/docs/zh_CN/guide/hidden-features.md | 7 +++++++ website/docs/zh_CN/guide/module.md | 2 +- 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 website/docs/guide/hidden-features.md create mode 100644 website/docs/zh_CN/guide/hidden-features.md diff --git a/website/docs/.vitepress/locales/en.ts b/website/docs/.vitepress/locales/en.ts index 03c8f487..2f1dcb1d 100644 --- a/website/docs/.vitepress/locales/en.ts +++ b/website/docs/.vitepress/locales/en.ts @@ -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' }, ] } ] diff --git a/website/docs/.vitepress/locales/zh_CN.ts b/website/docs/.vitepress/locales/zh_CN.ts index 66e871d8..6904158f 100644 --- a/website/docs/.vitepress/locales/zh_CN.ts +++ b/website/docs/.vitepress/locales/zh_CN.ts @@ -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' }, ] } ] diff --git a/website/docs/guide/hidden-features.md b/website/docs/guide/hidden-features.md new file mode 100644 index 00000000..edeb1b9d --- /dev/null +++ b/website/docs/guide/hidden-features.md @@ -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. \ No newline at end of file diff --git a/website/docs/zh_CN/guide/hidden-features.md b/website/docs/zh_CN/guide/hidden-features.md new file mode 100644 index 00000000..87c45865 --- /dev/null +++ b/website/docs/zh_CN/guide/hidden-features.md @@ -0,0 +1,7 @@ +# 隐藏功能 + +## ksurc + +默认情况下,`/system/bin/sh` 会加载 `/system/etc/mkshrc`。 + +可以通过创建 `/data/adb/ksu/.ksurc` 文件来让 su 加载该文件而不是 `/system/etc/mkshrc`。 \ No newline at end of file diff --git a/website/docs/zh_CN/guide/module.md b/website/docs/zh_CN/guide/module.md index 0609419a..bc73f65c 100644 --- a/website/docs/zh_CN/guide/module.md +++ b/website/docs/zh_CN/guide/module.md @@ -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 策略将会在系统启动时加载 │ │