summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-08 18:48:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-08 18:48:38 +0000
commitdaca6a6a97f89214b6fbfccf7989b4c17bde3da6 (patch)
treece5c29a8a9297ba4a999762e9153db8424be877e /package/base-files/files/lib
parenta73fffe85735f0417902ad3f43abc15348005713 (diff)
downloadmtk-20170518-daca6a6a97f89214b6fbfccf7989b4c17bde3da6.zip
mtk-20170518-daca6a6a97f89214b6fbfccf7989b4c17bde3da6.tar.gz
mtk-20170518-daca6a6a97f89214b6fbfccf7989b4c17bde3da6.tar.bz2
base-files: do not assume that "top" is busybox' top, but try to call the applet explicitely
SVN-Revision: 28862
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index e0db37e..a5a6fbf 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() { # <command> [...]
kill_remaining() { # [ <signal> ]
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 ;;