From 0415d0fa6fd83ad3142503890d49d6bc0dd116d8 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 9 Feb 2021 16:10:10 +0100 Subject: [PATCH] base-files: redirect kill ouptut for ash, telnetd and dropbear If one of the programmes is not running, then we see the following output in the logs. `killall: telnetd: no process killed` To ensure that the log is clean, redirect the output to /dev/null Signed-off-by: Florian Eckert (cherry picked from commit 40f533b73e6cfd7376cc6a0bbef9af46c8fbed86) --- package/base-files/files/lib/upgrade/stage2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 index 043599658f..4c06ccb30a 100755 --- a/package/base-files/files/lib/upgrade/stage2 +++ b/package/base-files/files/lib/upgrade/stage2 @@ -124,9 +124,9 @@ kill_remaining() { # [ [ ] ] indicate_upgrade -killall -9 telnetd -killall -9 dropbear -killall -9 ash +killall -9 telnetd 2>/dev/null +killall -9 dropbear 2>/dev/null +killall -9 ash 2>/dev/null kill_remaining TERM sleep 3