base-files: default_postinst: propagate the real postinst return code
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 1 Mar 2016 08:14:40 +0000 (08:14 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 1 Mar 2016 08:14:40 +0000 (08:14 +0000)
commit72bda33218127c308c7bb90062df57011ac70b4a
tree9c6a19fa522d5d0098cad607321a75205bb7d9b2
parentd6eeb828afef86c66d7c2401320e7c8b66816619
base-files: default_postinst: propagate the real postinst return code

Using the postinst script for sanity checks and expecting opkg to fail
if the postinst didn't return 0 was possible in Barrier Breaker, propagate
the real postinst return code through default_postinst to restore this
behaviour.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Backport of r46653

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48838 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/functions.sh