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

SVN-Revision: 48838
package/base-files/files/lib/functions.sh