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