base-files: do not assume that "top" is busybox' top, but try to call the applet explicitely

SVN-Revision: 28862
lede-17.01
Jo-Philipp Wich 2011-11-08 18:48:38 +00:00
parent a73fffe857
commit daca6a6a97
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files
PKG_RELEASE:=89
PKG_RELEASE:=90
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host

View File

@ -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 ;;