luci-app-eqos: make working with mtkhnat

This commit is contained in:
coolsnowwolf 2023-10-18 20:54:08 +08:00
parent f68ab8e4bf
commit 4898ed2834
2 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,7 @@ LUCI_PKGARCH:=all
PKG_NAME:=luci-app-eqos
PKG_VERSION:=1.0.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Jianhui Zhao <jianhuizhao329@gmail.com>

View File

@ -29,6 +29,11 @@ eqos_start() {
start() {
eqos stop
[ -f /etc/init.d/hwacc ] && {
uci set hwacc.mtk.enabled='0'
uci commit hwacc
/etc/init.d/hwacc start
}
config_load eqos
config_foreach eqos_start eqos
@ -36,4 +41,9 @@ start() {
stop() {
eqos stop
[ -f /etc/init.d/hwacc ] && {
uci set hwacc.mtk.enabled='1'
uci commit hwacc
/etc/init.d/hwacc start
}
}