openwrt/package/base-files/files
Tony Ambardar d40de11d1b base-files: fix prerm return value, align with postinst code
The return value of a package prerm script is discarded and not returned
correctly by default_prerm(). This allows other operations like service
shutdown to "leak" their return value, prompting workarounds like commit
48cfc826 which do not address the root cause.

Preserve a package prerm script return value for use by default_prerm(),
sharing the corresponding code from default_postinst() for consistency.
Also use consistent code for handling of /etc/init.d/ scripts.

Run Tested on: LEDE 17.01.4 running ar71xx.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
(cherry picked from commit 8806da86f5)
2018-11-29 11:54:20 +01:00
..
bin linux-atm: add br2684ctl option to specify the netdev name 2018-01-10 08:08:53 +01:00
etc base-files: fix unkillable processes after restart 2018-11-22 13:55:58 +01:00
lib base-files: fix prerm return value, align with postinst code 2018-11-29 11:54:20 +01:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: Reintroduce sysupgrade_pre_upgrade hook 2018-10-07 16:42:05 +02:00
usr base-files: remove remaining uses of %N, and drop VERSION_NICK config symbol 2017-12-09 23:27:41 +01:00