diff --git a/userspace/ksud_magic/src/cli.rs b/userspace/ksud_magic/src/cli.rs index 06c172f6..76ccbfab 100644 --- a/userspace/ksud_magic/src/cli.rs +++ b/userspace/ksud_magic/src/cli.rs @@ -101,21 +101,21 @@ enum Commands { // #[arg(long, default_value = None)] // kmi: Option, // }, - - /// 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, - - /// 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, - }, + // + // /// 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, + // + // /// 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, + // }, /// 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 { diff --git a/userspace/ksud_overlayfs/src/cli.rs b/userspace/ksud_overlayfs/src/cli.rs index 11c0fba8..0ee1f066 100644 --- a/userspace/ksud_overlayfs/src/cli.rs +++ b/userspace/ksud_overlayfs/src/cli.rs @@ -97,21 +97,21 @@ enum Commands { // #[arg(long, default_value = None)] // kmi: Option, // }, // 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, - - /// 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, - }, + // + // /// 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, + // + // /// 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, + // }, /// 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 {