From dd1c590131ca4500768dade3a558607f71d7ac18 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 11 Apr 2026 15:45:20 +0200 Subject: [PATCH] init: Remove echo special case from legacy init scripts The standalone echo command works fine too. --- init/src/scheduler.rs | 1 - init/src/script.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/init/src/scheduler.rs b/init/src/scheduler.rs index a5cc0ca6f0..133835d4f6 100644 --- a/init/src/scheduler.rs +++ b/init/src/scheduler.rs @@ -120,7 +120,6 @@ fn run_command(cmd: Command, config: &mut InitConfig) { match cmd { Command::RequiresWeak(_) => {} // handled by unit parsing code Command::Nothing => {} - Command::Echo(text) => println!("{text}"), Command::Service(service) => { if config.skip_cmd.contains(&service.cmd) { eprintln!( diff --git a/init/src/script.rs b/init/src/script.rs index 87e9f0523c..83b3518405 100644 --- a/init/src/script.rs +++ b/init/src/script.rs @@ -45,7 +45,6 @@ pub enum Command { Service(Service), // Misc - Echo(String), Nothing, } @@ -57,7 +56,6 @@ impl Command { match cmd.as_str() { "requires_weak" => Ok(Command::RequiresWeak(args.map(UnitId).collect::>())), - "echo" => Ok(Command::Echo(args.collect::>().join(" "))), "nowait" => { let process = Process::parse(args)?;