scripts/install: use pkg_call

This commit is contained in:
MilhouseVH 2018-11-28 15:38:46 +00:00
parent d0d28ee0a7
commit b5be90e394

View File

@ -130,9 +130,7 @@ unset -f post_install
# install
if [ "$TARGET" = target ] ; then
if [ "$(type -t pre_install)" = "function" ]; then
pre_install
fi
pkg_call_optional pre_install
fi
if [ "$TARGET" = "target" -a -d $PKG_BUILD/.install_pkg ]; then
@ -144,9 +142,7 @@ elif [ "$TARGET" = "init" -a -d $PKG_BUILD/.install_init ]; then
fi
if [ "$TARGET" = target ] ; then
if [ "$(type -t post_install)" = "function" ]; then
post_install
fi
pkg_call_optional post_install
fi
touch $STAMP