Add xwrt packages (natflow + url_logger)
This commit is contained in:
@@ -55,3 +55,7 @@ CONFIG_FEED__amneziawg=m
|
|||||||
#GIT_FEED _ruantiblock=https://github.com/gSpotx2f/ruantiblock_openwrt.git
|
#GIT_FEED _ruantiblock=https://github.com/gSpotx2f/ruantiblock_openwrt.git
|
||||||
CONFIG_FEED__ruantiblock=m
|
CONFIG_FEED__ruantiblock=m
|
||||||
|
|
||||||
|
### xwrt-packages
|
||||||
|
#GIT_FEED _xwrt_packages=https://github.com/openwrt-xiaomi/xwrt-packages.git
|
||||||
|
CONFIG_FEED__xwrt_packages=m
|
||||||
|
|
||||||
|
|||||||
@@ -228,6 +228,14 @@ CONFIG_PACKAGE_luci-i18n-banip-ru=y
|
|||||||
CONFIG_PACKAGE_luci-app-nlbwmon=y
|
CONFIG_PACKAGE_luci-app-nlbwmon=y
|
||||||
CONFIG_PACKAGE_luci-i18n-nlbwmon-ru=y
|
CONFIG_PACKAGE_luci-i18n-nlbwmon-ru=y
|
||||||
|
|
||||||
|
### X-WRT Packages
|
||||||
|
CONFIG_PACKAGE_kmod-natflow=y
|
||||||
|
CONFIG_PACKAGE_natflow-auth=y
|
||||||
|
CONFIG_PACKAGE_natflow-hostacl=y
|
||||||
|
CONFIG_PACKAGE_urllogger=y
|
||||||
|
CONFIG_PACKAGE_luci-app-natflow-users=y
|
||||||
|
|
||||||
|
|
||||||
### Disabled services
|
### Disabled services
|
||||||
#DISABLED_SVC=batmand
|
#DISABLED_SVC=batmand
|
||||||
#DISABLED_SVC=watchcat
|
#DISABLED_SVC=watchcat
|
||||||
|
|||||||
11
xmake.sh
11
xmake.sh
@@ -177,6 +177,17 @@ function build_target {
|
|||||||
sed -i "/config statistics 'collectd_thermal'/{n; s/option enable '0'/option enable '1'/}" $LUCISTATCONF
|
sed -i "/config statistics 'collectd_thermal'/{n; s/option enable '0'/option enable '1'/}" $LUCISTATCONF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
XWRTDIR=$XDIR/package/feeds/_xwrt_packages
|
||||||
|
if [ -d $XWRTDIR ]; then
|
||||||
|
[ -f $XWRTDIR/natflow/files/hostacl.config ] && sed -i 's/192.168.15./192.168.1./g' $XWRTDIR/natflow/files/hostacl.config
|
||||||
|
[ -f $XWRTDIR/natflow/files/natflow.config ] && sed -i 's/192.168.15./192.168.1./g' $XWRTDIR/natflow/files/natflow.config
|
||||||
|
[ -f $XWRTDIR/lua-ipops/src/ipops.lua ] && sed -i 's/192.168.15./192.168.1./g' $XWRTDIR/lua-ipops/src/ipops.lua
|
||||||
|
XWRTJSDIR=$XWRTDIR/luci-app-natflow-users/htdocs/luci-static/resources/view
|
||||||
|
[ -f $XWRTJSDIR/network/hostacl.js ] && sed -i 's/192.168.15./192.168.1./g' $XWRTJSDIR/network/hostacl.js
|
||||||
|
[ -f $XWRTJSDIR/network/natflow-qos.js ] && sed -i 's/192.168.15./192.168.1./g' $XWRTJSDIR/network/natflow-qos.js
|
||||||
|
[ -f $XWRTJSDIR/system/natflow-users.js ] && sed -i 's/192.168.15./192.168.1./g' $XWRTJSDIR/system/natflow-users.js
|
||||||
|
fi
|
||||||
|
|
||||||
OPKG_DIR=$XDIR/files/etc/opkg
|
OPKG_DIR=$XDIR/files/etc/opkg
|
||||||
if [ -d $OPKG_DIR ]; then
|
if [ -d $OPKG_DIR ]; then
|
||||||
rm -rf $OPKG_DIR
|
rm -rf $OPKG_DIR
|
||||||
|
|||||||
Reference in New Issue
Block a user