ksud: disabled BootRestore command

This commit is contained in:
rifsxd
2025-05-01 16:50:14 +06:00
parent 5696d72a3f
commit 72e54653a2
2 changed files with 40 additions and 40 deletions

View File

@@ -101,21 +101,21 @@ enum Commands {
// #[arg(long, default_value = None)] // #[arg(long, default_value = None)]
// kmi: Option<String>, // kmi: Option<String>,
// }, // },
//
/// Restore boot or init_boot images patched by KernelSU Next // /// Restore boot or init_boot images patched by KernelSU Next
BootRestore { // BootRestore {
/// boot image path, if not specified, will try to find the boot image automatically // /// boot image path, if not specified, will try to find the boot image automatically
#[arg(short, long)] // #[arg(short, long)]
boot: Option<PathBuf>, // boot: Option<PathBuf>,
//
/// Flash it to boot partition after patch // /// Flash it to boot partition after patch
#[arg(short, long, default_value = "false")] // #[arg(short, long, default_value = "false")]
flash: bool, // flash: bool,
//
/// magiskboot path, if not specified, will search from $PATH // /// magiskboot path, if not specified, will search from $PATH
#[arg(long, default_value = None)] // #[arg(long, default_value = None)]
magiskboot: Option<PathBuf>, // magiskboot: Option<PathBuf>,
}, // },
/// Show boot information /// Show boot information
BootInfo { BootInfo {
@@ -380,11 +380,11 @@ pub fn run() -> Result<()> {
return Ok(()); return Ok(());
} }
}, },
Commands::BootRestore { // Commands::BootRestore {
boot, // boot,
magiskboot, // magiskboot,
flash, // flash,
} => crate::boot_patch::restore(boot, magiskboot, flash), // } => crate::boot_patch::restore(boot, magiskboot, flash),
}; };
if let Err(e) = &result { if let Err(e) = &result {

View File

@@ -97,21 +97,21 @@ enum Commands {
// #[arg(long, default_value = None)] // #[arg(long, default_value = None)]
// kmi: Option<String>, // kmi: Option<String>,
// }, // DISBAND LKM MODE // }, // DISBAND LKM MODE
//
/// Restore boot or init_boot images patched by KernelSU Next // /// Restore boot or init_boot images patched by KernelSU Next
BootRestore { // BootRestore {
/// boot image path, if not specified, will try to find the boot image automatically // /// boot image path, if not specified, will try to find the boot image automatically
#[arg(short, long)] // #[arg(short, long)]
boot: Option<PathBuf>, // boot: Option<PathBuf>,
//
/// Flash it to boot partition after patch // /// Flash it to boot partition after patch
#[arg(short, long, default_value = "false")] // #[arg(short, long, default_value = "false")]
flash: bool, // flash: bool,
//
/// magiskboot path, if not specified, will search from $PATH // /// magiskboot path, if not specified, will search from $PATH
#[arg(long, default_value = None)] // #[arg(long, default_value = None)]
magiskboot: Option<PathBuf>, // magiskboot: Option<PathBuf>,
}, // },
/// Show boot information /// Show boot information
BootInfo { BootInfo {
@@ -395,11 +395,11 @@ pub fn run() -> Result<()> {
return Ok(()); return Ok(());
} }
}, },
Commands::BootRestore { // Commands::BootRestore {
boot, // boot,
magiskboot, // magiskboot,
flash, // flash,
} => crate::boot_patch::restore(boot, magiskboot, flash), // } => crate::boot_patch::restore(boot, magiskboot, flash),
}; };
if let Err(e) = &result { if let Err(e) = &result {