使用mk_openwrt_dockerimg.sh构建docker镜像时,patch turboacc时报错
redjumper opened this issue · 0 comments
redjumper commented
使用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"
}