Update litte.sh

This commit is contained in:
有種 2023-10-22 14:41:53 +08:00 committed by GitHub
parent 79c20f0f6b
commit ff71f523ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,5 +89,6 @@ sed -i \
#rm -rf adguardhome/patches #rm -rf adguardhome/patches
rm -rf ./*/.git ./*/.gitattributes ./*/.svn ./*/.github ./*/.gitignore rm -rf ./*/.git ./*/.gitattributes ./*/.svn ./*/.github ./*/.gitignore
#find . -type f -name Makefile -exec sed -i 's/PKG_BUILD_FLAGS:=no-mips16/PKG_USE_MIPS16:=0/g' {} + #find . -type f -name Makefile -exec sed -i 's/PKG_BUILD_FLAGS:=no-mips16/PKG_USE_MIPS16:=0/g' {} +
sed -i '59s/.*/local port=luci.sys.exec("awk \x27\/^dns:\/ {found_dns=1} found_dns \x26\x26 \/\^ port:\/ {print $2; exit}\x27 "..configpath.." 2>nul")/' luci-app-adguardhome/luasrc/model/cbi/AdGuardHome/base.lua
exit 0 exit 0