From daca6a6a97f89214b6fbfccf7989b4c17bde3da6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 8 Nov 2011 18:48:38 +0000 Subject: base-files: do not assume that "top" is busybox' top, but try to call the applet explicitely SVN-Revision: 28862 --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files/lib') diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index e0db37e750..a5a6fbf7e5 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -80,7 +80,7 @@ run_ramfs() { # [...] kill_remaining() { # [ ] local sig="${1:-TERM}" echo -n "Sending $sig to remaining processes ... " - top -bn1 | while read pid ppid user stat vsz pvsz pcpu cmd args; do + /bin/busybox top -bn1 2>/dev/null | while read pid ppid user stat vsz pvsz pcpu cmd args; do case "$pid" in [0-9]*) : ;; *) continue ;; -- cgit v1.2.3