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)]
|
// #[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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user