makefile: Add check for luajit on preinst

This commit is contained in:
remittor
2026-01-30 11:28:16 +03:00
parent 92b4159836
commit af466256af

View File

@@ -214,6 +214,10 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
exit 55
fi
fi
if $${PKG_CHECK} luajit 2>/dev/null | grep -q . ; then
echo "ERROR: conflict package \"luajit\". Required \"luajit2\" package. Please install new package \"zapret2\" manually!"
exit 59
fi
if [ -f "$${ZAPRET_CFG}" ] && ! grep -q "run_on_boot" "$${ZAPRET_CFG}"; then
if [ -x "$${ZAPRET_INITD}" ]; then
$${ZAPRET_INITD} running && $${ZAPRET_INITD} stop >/dev/null 2>&1