Add new additional package luci-app-homeproxy

This commit is contained in:
remittor
2023-11-29 16:43:21 +03:00
parent e9e09c3f42
commit 270814fda7
4 changed files with 23 additions and 0 deletions

View File

@@ -72,6 +72,21 @@ if [ -f $LUCI_XRAY_MK ]; then
sed -i 's/ +xray-core / /g' $LUCI_XRAY_MK
fi
fi
HOMEPROXY_MK=$XDIR/package/addons/luci-app-homeproxy/Makefile
if [ -f $HOMEPROXY_MK ]; then
pkg_chinadns=$( get_cfg_pkg_flag $CFG chinadns-ng )
if [ "$pkg_chinadns" != "y" ]; then
# Forced disable chinadns-ng package
sed -i '/CONFIG_PACKAGE_chinadns-ng=/d' $CFG
sed -i 's/+chinadns-ng /+luci /g' $HOMEPROXY_MK
fi
pkg_sing_box=$( get_cfg_pkg_flag $CFG sing-box )
if [ "$pkg_sing_box" != "y" ]; then
# Forced disable sing-box package
sed -i '/CONFIG_PACKAGE_sing-box=/d' $CFG
sed -i 's/+sing-box /+luci /g' $HOMEPROXY_MK
fi
fi
make defconfig