You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ksud: added module mount command to check current mount system enabled
This commit is contained in:
@@ -493,6 +493,12 @@ fn _list_modules(path: &str) -> Vec<HashMap<String, String>> {
|
||||
modules
|
||||
}
|
||||
|
||||
pub fn mount_system() -> Result<()> {
|
||||
println!("Current mount system: {}", defs::MOUNT_SYSTEM);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn list_modules() -> Result<()> {
|
||||
let modules = _list_modules(defs::MODULE_DIR);
|
||||
println!("{}", serde_json::to_string_pretty(&modules)?);
|
||||
|
||||
Reference in New Issue
Block a user