From 467d6e08388dab278ad0110f204860c881dfdb8a Mon Sep 17 00:00:00 2001 From: WenHao2130 Date: Sun, 20 Jul 2025 23:31:29 +0800 Subject: [PATCH] ksud: Add KSU_SUKISU to env This will help module authors determine which root implementation the module is running on. Signed-off-by: WenHao2130 --- userspace/ksud/src/module.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userspace/ksud/src/module.rs b/userspace/ksud/src/module.rs index 9cb56e8c..96c4eba4 100644 --- a/userspace/ksud/src/module.rs +++ b/userspace/ksud/src/module.rs @@ -54,6 +54,7 @@ fn exec_install_script(module_file: &str) -> Result<()> { ), ) .env("KSU", "true") + .env("KSU_SUKISU", "true") .env("KSU_KERNEL_VER_CODE", ksucalls::get_version().to_string()) .env("KSU_VER", defs::VERSION_NAME) .env("KSU_VER_CODE", defs::VERSION_CODE) @@ -170,6 +171,7 @@ fn exec_script>(path: T, wait: bool) -> Result<()> { .arg(path.as_ref()) .env("ASH_STANDALONE", "1") .env("KSU", "true") + .env("KSU_SUKISU", "true") .env("KSU_KERNEL_VER_CODE", ksucalls::get_version().to_string()) .env("KSU_VER_CODE", defs::VERSION_CODE) .env("KSU_VER", defs::VERSION_NAME)