garypang13 4 anni fa
parent
commit
7a37326ccc

+ 2 - 2
.github/workflows/Openwrt-AutoBuild.yml

@@ -69,14 +69,14 @@ jobs:
         -H "Accept: application/vnd.github.everest-preview+json" \
         -H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
         --data '{"event_type": "update"}'
+        sleep 12
         fi
 
     - name: Initialization environment
       env:
         DEBIAN_FRONTEND: noninteractive
       run: |
-        ( docker rmi `docker images -q`
-        sudo -E apt-get -qq purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* android*
+        ( sudo -E apt-get -qq purge azure-cli ghc* zulu* hhvm llvm* firefox powershell openjdk* dotnet* google* mysql* php* android*
         sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
         sudo -E apt-get -qq update
         sudo -E apt-get -qq install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler ccache xsltproc rename antlr3 gperf wget curl swig rsync upx

+ 1 - 0
README.md

@@ -123,6 +123,7 @@ Build OpenWrt using GitHub Actions
 - [CTCGFW's Team](https://github.com/immortalwrt/immortalwrt)
 - [Lienol](https://github.com/Lienol/openwrt)
 - [P3TERX](https://github.com/P3TERX/Actions-OpenWrt/blob/master/LICENSE)
+- [X-WRT](https://github.com/x-wrt/x-wrt)
 - [upload-release-action](https://github.com/svenstaro/upload-release-action)
 - [Microsoft](https://www.microsoft.com)
 - [Microsoft Azure](https://azure.microsoft.com)

+ 19 - 0
devices/XY-C5/patches/tblsection.patch

@@ -0,0 +1,19 @@
+--- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
++++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
+@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
+ 
+ 			local isempty, section, i, k = true, nil, nil
+ 		    for i, k in ipairs(self:cfgsections()) do
++		    	if i <= 100 then
+ 				isempty = false
+ 				section = k
+ 
+@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
+ 				</td>
+ 			<%- end -%>
+ 		</tr>
++			<%- i=i+1 -%>
++			<%- end -%>
+ 		<%- end -%>
+ 
+ 		<%- if isempty then -%>

+ 0 - 2
devices/common/default-settings

@@ -46,8 +46,6 @@ test $version -lt 1 && {
 
 	uci set uhttpd.main.rfc1918_filter=0
 	uci set uhttpd.main.redirect_https=0
-	uci set uhttpd.main.max_connections='200'
-	uci set uhttpd.main.max_requests='100'
 	uci commit uhttpd
 
 	SUBFIX=`echo -n $MACADDR | sed 's/://g' | tr a-z A-Z | tail -c4`

+ 1 - 1
devices/common/diy.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 #=================================================
 rm -Rf feeds/custom/diy
-rm -Rf feeds/packages/net/{smartdns,mwan3,miniupnpd,aria2,https-dns-proxy,shadowsocks-libev,frp,openvpn} feeds/luci/applications/luci-app-{dockerman,smartdns,frpc,frps,https-dns-proxy}
+rm -Rf feeds/packages/net/{smartdns,mwan3,miniupnpd,aria2,nft-qos,https-dns-proxy,shadowsocks-libev,frp,openvpn} feeds/luci/applications/luci-app-{dockerman,nft-qos,smartdns,frpc,frps,https-dns-proxy}
 rm -Rf feeds/packages/utils/cgroupfs-mount
 ./scripts/feeds update luci packages custom
 ./scripts/feeds install -a

+ 19 - 0
devices/k2p-32m-usb/patches/tblsection.patch

@@ -0,0 +1,19 @@
+--- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
++++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
+@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
+ 
+ 			local isempty, section, i, k = true, nil, nil
+ 		    for i, k in ipairs(self:cfgsections()) do
++		    	if i <= 100 then
+ 				isempty = false
+ 				section = k
+ 
+@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
+ 				</td>
+ 			<%- end -%>
+ 		</tr>
++			<%- i=i+1 -%>
++			<%- end -%>
+ 		<%- end -%>
+ 
+ 		<%- if isempty then -%>

+ 1 - 2
devices/nanopi-r4s/files/etc/config/cpufreq

@@ -1,8 +1,7 @@
-
 config settings 'cpufreq'
 	option governor0 'schedutil'
+	option minfreq0 '816000'
 	option maxfreq0 '1800000'
 	option governor4 'schedutil'
 	option minfreq4 '816000'
 	option maxfreq4 '2208000'
-	option minfreq0 '816000'

+ 19 - 0
devices/newifi-d2/patches/tblsection.patch

@@ -0,0 +1,19 @@
+--- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
++++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
+@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
+ 
+ 			local isempty, section, i, k = true, nil, nil
+ 		    for i, k in ipairs(self:cfgsections()) do
++		    	if i <= 100 then
+ 				isempty = false
+ 				section = k
+ 
+@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
+ 				</td>
+ 			<%- end -%>
+ 		</tr>
++			<%- i=i+1 -%>
++			<%- end -%>
+ 		<%- end -%>
+ 
+ 		<%- if isempty then -%>

+ 19 - 0
devices/phicomm-k2p/patches/tblsection.patch

@@ -0,0 +1,19 @@
+--- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
++++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
+@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
+ 
+ 			local isempty, section, i, k = true, nil, nil
+ 		    for i, k in ipairs(self:cfgsections()) do
++		    	if i <= 100 then
+ 				isempty = false
+ 				section = k
+ 
+@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
+ 				</td>
+ 			<%- end -%>
+ 		</tr>
++			<%- i=i+1 -%>
++			<%- end -%>
+ 		<%- end -%>
+ 
+ 		<%- if isempty then -%>

+ 19 - 0
devices/redmi-ac2100/patches/tblsection.patch

@@ -0,0 +1,19 @@
+--- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
++++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
+@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
+ 
+ 			local isempty, section, i, k = true, nil, nil
+ 		    for i, k in ipairs(self:cfgsections()) do
++		    	if i <= 100 then
+ 				isempty = false
+ 				section = k
+ 
+@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
+ 				</td>
+ 			<%- end -%>
+ 		</tr>
++			<%- i=i+1 -%>
++			<%- end -%>
+ 		<%- end -%>
+ 
+ 		<%- if isempty then -%>

+ 19 - 0
devices/xiaomi-r3p/patches/tblsection.patch

@@ -0,0 +1,19 @@
+--- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
++++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
+@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
+ 
+ 			local isempty, section, i, k = true, nil, nil
+ 		    for i, k in ipairs(self:cfgsections()) do
++		    	if i <= 100 then
+ 				isempty = false
+ 				section = k
+ 
+@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
+ 				</td>
+ 			<%- end -%>
+ 		</tr>
++			<%- i=i+1 -%>
++			<%- end -%>
+ 		<%- end -%>
+ 
+ 		<%- if isempty then -%>

+ 29 - 17
onekey/compile.sh

@@ -40,9 +40,6 @@ fi
 
 
 rm -Rf openwrt
-git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
-svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
-cd openwrt
 
 echo "
 
@@ -50,17 +47,19 @@ echo "
 
 2. K2p
 
-3. RedMi_AC2100
+3. K2p 32M
 
-4. r2s
+4. RedMi_AC2100
 
-5. r4s
+5. r2s
 
-6. newifi-d2
+6. r4s
 
-7. XY-C5
+7. newifi-d2
 
-8. Exit
+8. XY-C5
+
+9. Exit
 
 "
 
@@ -78,37 +77,50 @@ case $CHOOSE in
 	break
 	;;
 	3)
-		firmware="redmi-ac2100"
+		firmware="k2p-32m-usb"
 	break
 	;;
 	4)
-		firmware="nanopi-r2s"
+		firmware="redmi-ac2100"
 	break
 	;;
 	5)
-		firmware="nanopi-r4s"
+		firmware="nanopi-r2s"
 	break
 	;;
 	6)
-		firmware="newifi-d2"
+		firmware="nanopi-r4s"
 	break
 	;;
 	7)
+		firmware="newifi-d2"
+	break
+	;;
+	8)
 		firmware="XY-C5"
 	break
 	;;
-	8)	exit 0
+	9)	exit 0
 	;;
 
 esac
 done
 
 if [[ $firmware =~ (redmi-ac2100|phicomm-k2p|newifi-d2|k2p-32m-usb|XY-C5|xiaomi-r3p) ]]; then
-		wget -cO sdk1.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/ramips/mt7621/openwrt-sdk-21.02-SNAPSHOT-ramips-mt7621_gcc-8.4.0_musl.Linux-x86_64.tar.xz
+		git clone -b master --depth 1 https://github.com/x-wrt/x-wrt openwrt
+		svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
+		cd openwrt
+		wget -cO sdk1.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/ramips/mt7621/openwrt-sdk-21.02-SNAPSHOT-ramips-mt7621_gcc-8.4.0_musl.Linux-x86_64.tar.xz &
 elif [[ $firmware =~ (nanopi-r2s|nanopi-r4s) ]]; then
-		wget -cO sdk1.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/rockchip/armv8/openwrt-sdk-21.02-SNAPSHOT-rockchip-armv8_gcc-8.4.0_musl.Linux-x86_64.tar.xz
+		git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
+		svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
+		cd openwrt
+		wget -cO sdk1.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/rockchip/armv8/openwrt-sdk-21.02-SNAPSHOT-rockchip-armv8_gcc-8.4.0_musl.Linux-x86_64.tar.xz &
 elif [[ $firmware == "x86_64" ]]; then
-		wget -cO sdk1.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
+		git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
+		svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
+		cd openwrt
+		wget -cO sdk1.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz &
 fi