Skip to content

Commit

Permalink
ksud: fix supported kmi
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 23, 2024
1 parent 98030ee commit c924c65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userspace/ksud/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pub fn copy_assets_to_file(name: &str, dst: impl AsRef<Path>) -> Result<()> {
pub fn list_supported_kmi() -> Result<Vec<String>> {
let mut list = Vec::new();
for file in Asset::iter() {
if let Some(kmi) = file.strip_suffix(".ko") {
// kmi_name = "xxx_kernelsu.ko"
if let Some(kmi) = file.strip_suffix("_kernelsu.ko") {
list.push(kmi.to_string());
}
}
Expand Down

0 comments on commit c924c65

Please sign in to comment.