diff --git a/scripts/install b/scripts/install index fbc9b3fd01..b1797d7478 100755 --- a/scripts/install +++ b/scripts/install @@ -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