postinst trigger: the new postinst trigger broke IB

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42571
This commit is contained in:
John Crispin
2014-09-16 11:56:19 +00:00
parent ac01f2b9d6
commit 44249f71a8
4 changed files with 15 additions and 10 deletions

View File

@@ -197,9 +197,12 @@ default_postinst() {
done
done
}
[ -n "${IPKG_INSTROOT}" -o "$PKG_UPGRADE" = "1" ] || for i in `cat /usr/lib/opkg/info/${name}.list | grep "^/etc/init.d/"`; do
$i enable
$i start
[ "$PKG_UPGRADE" = "1" ] || for i in `cat ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.list | grep "^/etc/init.d/"`; do
[ -n "${IPKG_INSTROOT}" ] && $(which bash) ${IPKG_INSTROOT}/etc/rc.common ${IPKG_INSTROOT}$i enable; \
[ -n "${IPKG_INSTROOT}" ] || {
$i enable
$i start
}
done
return 0
}