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)
commit74c5e57773eb5720d7f25d8d26913d1981023b81
tree39e766086293b27adde8e99ac44611f52496afd7
parent3235914fde23c5fdb4eaf1d6bec25cedcdbe51a9
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