base-files: default_postinst: propagate the real postinst return code
authorJohn Crispin <blogic@openwrt.org>
Tue, 1 Mar 2016 08:14:40 +0000 (08:14 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 1 Mar 2016 08:14:40 +0000 (08:14 +0000)
commitf4598c54e5b2ec4cc661104e32cd8feee3f83b6a
tree9c6a19fa522d5d0098cad607321a75205bb7d9b2
parenta45758c50709961bb28d402aaf0de69bc8d23388
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