ksud: skip removing module if no modules exist, also add uninstall mangaer, reboot

This commit is contained in:
weishu
2024-04-23 15:32:15 +08:00
parent 0697db618e
commit 3aac979caa
3 changed files with 25 additions and 10 deletions

View File

@@ -189,10 +189,10 @@ pub fn restore(
new_boot = Some(PathBuf::from(backup_path));
from_backup = true;
} else {
println!("Warning: no backup {KSU_BACKUP_DIR}/{KSU_BACKUP_FILE_PREFIX}{sha} found!");
println!("- Warning: no backup {KSU_BACKUP_DIR}/{KSU_BACKUP_FILE_PREFIX}{sha} found!");
}
} else {
println!("Warning: no backup found!");
println!("- Cannot found backup image!");
}
if new_boot.is_none() {