sysupgrade: Enable killing of all processes under upgraded
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 10 Jul 2014 19:16:27 +0000 (19:16 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 10 Jul 2014 19:16:27 +0000 (19:16 +0000)
commitdb535bdb5f404c5fb16b8a4719e2cbf250d7c925
tree3258a3be3120f3efaec89f8ff53263814439f8b1
parent036ca009111ffb30b5587eccfe1ae3aae5410694
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