aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/upgrade
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
commit2df11b3cba30bbc5d16ecefc99b71d432ebf54e4 (patch)
tree20f9239de809c348f2dc75b474d880611d16510e /package/base-files/files/lib/upgrade
parentc0432f5687f38aa6e3bf0a66b26aed74649c9e28 (diff)
downloadmaster-187ad058-2df11b3cba30bbc5d16ecefc99b71d432ebf54e4.tar.gz
master-187ad058-2df11b3cba30bbc5d16ecefc99b71d432ebf54e4.tar.bz2
master-187ad058-2df11b3cba30bbc5d16ecefc99b71d432ebf54e4.zip
[package] base-files: do not assume that "top" is busybox' top, but try to call the applet explicitely
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28862 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/upgrade')
-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 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() { # <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 ;;