From: Florian Eckert Date: Tue, 9 Feb 2021 15:10:10 +0000 (+0100) Subject: base-files: redirect kill ouptut for ash, telnetd and dropbear X-Git-Tag: mikrotik~1830 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=40f533b73e6cfd7376cc6a0bbef9af46c8fbed86;p=openwrt%2Fstaging%2Fchunkeey.git 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 --- diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 index f2f3cd439a..13c3622f38 100755 --- a/package/base-files/files/lib/upgrade/stage2 +++ b/package/base-files/files/lib/upgrade/stage2 @@ -137,9 +137,9 @@ for service in /etc/init.d/*; do ubus call service delete '{ "name": "'"$service"'" }' 2>/dev/null done -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 4