ksud: remove unused command
This commit is contained in:
@@ -18,9 +18,6 @@ struct Args {
|
|||||||
|
|
||||||
#[derive(clap::Subcommand, Debug)]
|
#[derive(clap::Subcommand, Debug)]
|
||||||
enum Commands {
|
enum Commands {
|
||||||
/// Start KernelSU userspace daemon
|
|
||||||
Daemon,
|
|
||||||
|
|
||||||
/// Manage KernelSU modules
|
/// Manage KernelSU modules
|
||||||
Module {
|
Module {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
@@ -151,7 +148,6 @@ pub fn run() -> Result<()> {
|
|||||||
log::info!("command: {:?}", cli.command);
|
log::info!("command: {:?}", cli.command);
|
||||||
|
|
||||||
let result = match cli.command {
|
let result = match cli.command {
|
||||||
Commands::Daemon => event::daemon(),
|
|
||||||
Commands::PostFsData => event::on_post_data_fs(),
|
Commands::PostFsData => event::on_post_data_fs(),
|
||||||
Commands::BootCompleted => event::on_boot_completed(),
|
Commands::BootCompleted => event::on_boot_completed(),
|
||||||
|
|
||||||
|
|||||||
@@ -219,10 +219,6 @@ pub fn on_boot_completed() -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn daemon() -> Result<()> {
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn install() -> Result<()> {
|
pub fn install() -> Result<()> {
|
||||||
ensure_dir_exists(defs::ADB_DIR)?;
|
ensure_dir_exists(defs::ADB_DIR)?;
|
||||||
std::fs::copy("/proc/self/exe", defs::DAEMON_PATH)?;
|
std::fs::copy("/proc/self/exe", defs::DAEMON_PATH)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user