sysupgrade: Enable killing of all processes under upgraded
authorJohn Crispin <blogic@openwrt.org>
Thu, 10 Jul 2014 19:16:27 +0000 (19:16 +0000)
committerJohn Crispin <blogic@openwrt.org>
Thu, 10 Jul 2014 19:16:27 +0000 (19:16 +0000)
commit0126e7505eade8497c8fff9efc302b875450b081
tree3258a3be3120f3efaec89f8ff53263814439f8b1
parent8b5f2129984c6c31d2a9fe74733cdc553dba68fc
sysupgrade: Enable killing of all processes under upgraded

If the sysupgrade scripts is called under upgraded, it will not kill all
other processes as it should to avoid interference by locked filesystem.
This patch checks the parent and if it is upgraded, it kills all.

Signed-off-by: André Valentin <avalentin@marcant.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41563 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/upgrade/common.sh