Change-Id: I8ff682592f8f1c0b4c0615493f8df49a5aad7010
Signed-off-by: wangbiao <biao716.wang@samsung.com>
echo "running $PKG preinstall script"
local prog
read prog < "$BUILD_ROOT/.init_b_cache/scripts/$PKG.preprog"
+ if test "$prog" = "<lua>" ; then
+ prog="/usr/bin/lua"
+ fi
(cd $BUILD_ROOT && chroot $BUILD_ROOT "${prog:-sh}" ".init_b_cache/scripts/$PKG.pre" 0)
rm -f "$BUILD_ROOT/.init_b_cache/scripts/$PKG.pre" "$BUILD_ROOT/.init_b_cache/scripts/$PKG.preprog"
fi
echo "running $PKG postinstall script"
local prog
read prog < "$BUILD_ROOT/.init_b_cache/scripts/$PKG.postprog"
+ if test "$prog" = "<lua>" ; then
+ prog="/usr/bin/lua"
+ fi
(cd $BUILD_ROOT && chroot $BUILD_ROOT "${prog:-sh}" ".init_b_cache/scripts/$PKG.post" 1)
rm -f "$BUILD_ROOT/.init_b_cache/scripts/$PKG.post" "$BUILD_ROOT/.init_b_cache/scripts/$PKG.postprog"
fi