Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用mk_openwrt_dockerimg.sh构建docker镜像时,patch turboacc时报错 #192

Open
redjumper opened this issue May 10, 2023 · 0 comments

Comments

@redjumper
Copy link

使用mk_openwrt_dockerimg.sh构建docker镜像时,patch turboacc会报错

patching file usr/lib/lua/luci/view/admin_status/index.htm
patching file etc/init.d/turboacc
Hunk #1 FAILED at 21.
Hunk #2 succeeded at 227 (offset -1 lines).
1 out of 2 hunks FAILED -- saving rejects to file etc/init.d/turboacc.rej
patching file usr/lib/lua/luci/model/cbi/turboacc.lua
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file usr/lib/lua/luci/model/cbi/turboacc.lua.rej
patching file usr/lib/lua/luci/model/cbi/turboacc.lua
Hunk #2 FAILED at 24.
1 out of 2 hunks FAILED -- saving rejects to file usr/lib/lua/luci/model/cbi/turboacc.lua.rej

现在/etc/init.d/turboacc好像只有3行

inital_conf(){
        config_load "turboacc"
        config_get "sw_flow" "config" "sw_flow" "0"
        config_get "hw_flow" "config" "hw_flow" "0"
        config_get "sfe_flow" "config" "sfe_flow" "0"
        config_get "bbr_cca" "config" "bbr_cca" "0"
        config_get "fullcone_nat" "config" "fullcone_nat" "0"
        config_get "dns_caching" "config" "dns_caching" "0"
        config_get "dns_caching_mode" "config" "dns_caching_mode" "0"
        config_get "dns_caching_dns" "config" "dns_caching_dns"

        [ ! -e "/lib/modules/$(uname -r)/mtkhnat.ko" ] && hw_flow="0";
        [ ! -e "/lib/modules/$(uname -r)/xt_FLOWOFFLOAD.ko" ] && { sw_flow="0"; hw_flow="0"; }
        [ ! -e "/lib/modules/$(uname -r)/tcp_bbr.ko" ] && bbr_cca="0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant