Skip to content

Commit d7fe770

Browse files
update 2023-04-18 20:29:51
1 parent 9816d2e commit d7fe770

File tree

20 files changed

+371
-522
lines changed

20 files changed

+371
-522
lines changed

gn/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
include $(TOPDIR)/rules.mk
66

77
PKG_NAME:=gn
8-
PKG_RELEASE:=3
8+
PKG_RELEASE:=4
99

1010
PKG_SOURCE_PROTO:=git
1111
PKG_SOURCE_URL:=https://gn.googlesource.com/gn.git
12-
PKG_SOURCE_DATE:=2023-02-17
13-
PKG_SOURCE_VERSION:=b25a2f8c2d33f02082f0f258350f5e22c0973108
12+
PKG_SOURCE_DATE:=2023-04-05
13+
PKG_SOURCE_VERSION:=28b7b6c507eb808567e3aea446cd259f7691fddc
1414
PKG_MIRROR_HASH:=skip
1515

1616
PKG_LICENSE:=BSD 3-Clause

gn/src/out/last_commit_position.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef OUT_LAST_COMMIT_POSITION_H_
44
#define OUT_LAST_COMMIT_POSITION_H_
55

6-
#define LAST_COMMIT_POSITION_NUM 2081
7-
#define LAST_COMMIT_POSITION "2081 (b25a2f8c2d33)"
6+
#define LAST_COMMIT_POSITION_NUM 2085
7+
#define LAST_COMMIT_POSITION "2085 (28b7b6c507eb)"
88

99
#endif // OUT_LAST_COMMIT_POSITION_H_

luci-app-advanced/README.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,38 @@ luci-app-advanced 高级设置,包括smartdns,openclash,防火墙,DHCP
77

88
![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/说明2.jpg)
99

10+
11+
12+
## 使用与授权相关说明
13+
14+
- 本人开源的所有源码,任何引用需注明本处出处,如需修改二次发布必告之本人,未经许可不得做于任何商用用途。
15+
16+
1017
# My other project
1118

12-
网络速度测试 :https://github.com/sirpdboy/NetSpeedTest
19+
- 网络速度测试 :https://github.com/sirpdboy/NetSpeedTest
1320

14-
定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset
21+
- 定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset
1522

16-
关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice
23+
- 关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice
1724

18-
opentopd主题 : https://github.com/sirpdboy/luci-theme-opentopd
25+
- opentopd主题 : https://github.com/sirpdboy/luci-theme-opentopd
1926

20-
opentoks 主题: https://github.com/sirpdboy/luci-theme-opentoks [仿KOOLSAHRE主题]
27+
- kucat 主题: https://github.com/sirpdboy/luci-theme-kucat
2128

22-
btmob 主题: https://github.com/sirpdboy/luci-theme-btmob
29+
- 家长控制: https://github.com/sirpdboy/luci-theme-parentcontrol
2330

24-
系统高级设置 : https://github.com/sirpdboy/luci-app-advanced
31+
- 系统高级设置 : https://github.com/sirpdboy/luci-app-advanced
2532

26-
ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go
33+
- ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go
2734

35+
- 进阶设置(系统高级设置+主题设置kucat/agron/opentopd): https://github.com/sirpdboy/luci-app-advancedplus
36+
37+
- 设置向导: https://github.com/sirpdboy/luci-app-wizard
38+
39+
- 分区扩容: https://github.com/sirpdboy/luci-app-partexp
40+
41+
- lukcy大吉: https://github.com/sirpdboy/luci-app-lukcy
2842

2943
## 捐助
3044

@@ -37,4 +51,3 @@ ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go
3751
<a href="#readme">
3852
<img src="https://img.shields.io/badge/-返回顶部-orange.svg" alt="图飞了😂" title="返回顶部" align="right"/>
3953
</a>
40-

luci-app-advanced/luasrc/model/cbi/advanced.lua

+47-51
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,6 @@ m.apply_on_parse=true
66
s=m:section(TypedSection,"advanced")
77
s.anonymous=true
88

9-
if nixio.fs.access("/bin/nuc")then
10-
s:tab("mode",translate("模式设置"),translate("<br />可以在这里切换旁路由和正常模式,重置你的网络设置。<br /><font color=\"Red\"><strong>点击后会立即重启设备,没有确认过程,请谨慎操作!</strong></font><br/>"))
11-
o=s:taboption("mode",Button,"nucmode",translate("切换为旁路由模式"),translate("<font color=\"green\"><strong>本模式适合于单口和多网口主机,自动将网口全桥接好!<br />默认gateway是:192.168.1.1,ipaddr是192.168.1.2。用本机接口LAN接上级LAN当旁路由,主路由关闭DHCP服务。应用生效会重启软路由!</strong></font><br/>"))
12-
o.inputtitle = translate("Apply")
13-
o.inputstyle = "reset"
14-
o.write = function()
15-
luci.sys.exec("/bin/nuc &> /dev/null &")
16-
end
17-
o=s:taboption("mode",Button,"normalmode",translate("切换成路由模式"),translate("<font color=\"green\"><strong>本模式适合于有两个网口或以上的设备使用,如多网口软路由或者虚拟了两个以上网口的虚拟机使用!应用生效会重启软路由!。</strong></font><br/>"))
18-
o.inputtitle = translate("Apply")
19-
o.inputstyle = "reset"
20-
o.write = function()
21-
luci.sys.exec("/bin/normalmode &> /dev/null &")
22-
end
23-
24-
o=s:taboption("mode",Button,"ipmode6",translate("设置为IPV6网络"),translate("<font color=\"green\"><strong>点击应用切换到IPV6模式!保存应用后即刻有效!</strong></font><br/>"))
25-
26-
o.inputtitle = translate("Apply")
27-
o.inputstyle = "add"
28-
o.write = function(self, section)
29-
luci.sys.exec("ipmode6 &> /dev/null &")
30-
end
31-
32-
o=s:taboption("mode",Button,"ipmode4",translate("设置为IPV4网络"),translate("<font color=\"green\"><strong>点击应用切换到IPV4模式!保存应用后即刻有效!</strong></font><br/>"))
33-
34-
o.inputtitle = translate("Apply")
35-
o.inputstyle = "add"
36-
o.write = function(self, section)
37-
luci.sys.exec("ipmode4 &> /dev/null &")
38-
end
39-
40-
end
419
if nixio.fs.access("/etc/dnsmasq.conf")then
4210

4311
s:tab("dnsmasqconf",translate("dnsmasq"),translate("本页是配置/etc/dnsmasq.conf的文档内容。应用保存后自动重启生效"))
@@ -127,6 +95,7 @@ e.remove("/tmp/hosts.tmp")
12795
end
12896
end
12997
end
98+
13099
if nixio.fs.access("/etc/config/arpbind")then
131100
s:tab("arpbindconf",translate("ARP绑定"),translate("本页是配置/etc/config/arpbind包含APR绑定MAC地址文档内容。应用保存后自动重启生效"))
132101
conf=s:taboption("arpbindconf",Value,"arpbindconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
@@ -148,6 +117,7 @@ e.remove("/tmp/arpbind")
148117
end
149118
end
150119
end
120+
151121
if nixio.fs.access("/etc/config/firewall")then
152122
s:tab("firewallconf",translate("防火墙"),translate("本页是配置/etc/config/firewall包含防火墙协议设置文档内容。应用保存后自动重启生效"))
153123
conf=s:taboption("firewallconf",Value,"firewallconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
@@ -169,6 +139,7 @@ e.remove("/tmp/firewall")
169139
end
170140
end
171141
end
142+
172143
if nixio.fs.access("/etc/config/mwan3")then
173144
s:tab("mwan3conf",translate("负载均衡"),translate("本页是配置/etc/config/mwan3包含负载均衡设置文档内容。应用保存后自动重启生效"))
174145
conf=s:taboption("mwan3conf",Value,"mwan3conf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
@@ -211,6 +182,7 @@ e.remove("/tmp/dhcp")
211182
end
212183
end
213184
end
185+
214186
if nixio.fs.access("/etc/config/ddns")then
215187
s:tab("ddnsconf",translate("DDNS"),translate("本页是配置/etc/config/ddns包含动态域名设置文档内容。应用保存后自动重启生效"))
216188
conf=s:taboption("ddnsconf",Value,"ddnsconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
@@ -233,48 +205,50 @@ end
233205
end
234206
end
235207

236-
if nixio.fs.access("/etc/config/timecontrol")then
237-
s:tab("timecontrolconf",translate("时间控制"),translate("本页是配置/etc/config/timecontrol包含上网时间控制配置文档内容。应用保存后自动重启生效"))
238-
conf=s:taboption("timecontrolconf",Value,"timecontrolconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
208+
if nixio.fs.access("/etc/config/parentcontrol")then
209+
s:tab("parentcontrolconf",translate("家长控制"),translate("本页是配置/etc/config/parentcontrol包含家长控制配置文档内容。应用保存后自动重启生效"))
210+
conf=s:taboption("parentcontrolconf",Value,"parentcontrolconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
239211
conf.template="cbi/tvalue"
240212
conf.rows=20
241213
conf.wrap="off"
242214
conf.cfgvalue=function(t,t)
243-
return e.readfile("/etc/config/timecontrol")or""
215+
return e.readfile("/etc/config/parentcontrol")or""
244216
end
245217
conf.write=function(a,a,t)
246218
if t then
247219
t=t:gsub("\r\n?","\n")
248-
e.writefile("/tmp/timecontrol",t)
249-
if(luci.sys.call("cmp -s /tmp/timecontrol /etc/config/timecontrol")==1)then
250-
e.writefile("/etc/config/timecontrol",t)
251-
luci.sys.call("/etc/init.d/timecontrol restart >/dev/null")
220+
e.writefile("/tmp/parentcontrol",t)
221+
if(luci.sys.call("cmp -s /tmp/parentcontrol /etc/config/parentcontrol")==1)then
222+
e.writefile("/etc/config/parentcontrol",t)
223+
luci.sys.call("/etc/init.d/parentcontrol restart >/dev/null")
252224
end
253-
e.remove("/tmp/timecontrol")
225+
e.remove("/tmp/parentcontrol")
254226
end
255227
end
256228
end
257-
if nixio.fs.access("/etc/config/rebootschedule")then
258-
s:tab("rebootscheduleconf",translate("定时设置"),translate("本页是配置/etc/config/rebootschedule包含定时设置任务配置文档内容。应用保存后自动重启生效"))
259-
conf=s:taboption("rebootscheduleconf",Value,"rebootscheduleconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
229+
230+
if nixio.fs.access("/etc/config/autotimeset")then
231+
s:tab("autotimesetconf",translate("定时设置"),translate("本页是配置/etc/config/autotimeset包含定时设置任务配置文档内容。应用保存后自动重启生效"))
232+
conf=s:taboption("autotimesetconf",Value,"autotimesetconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
260233
conf.template="cbi/tvalue"
261234
conf.rows=20
262235
conf.wrap="off"
263236
conf.cfgvalue=function(t,t)
264-
return e.readfile("/etc/config/rebootschedule")or""
237+
return e.readfile("/etc/config/autotimeset")or""
265238
end
266239
conf.write=function(a,a,t)
267240
if t then
268241
t=t:gsub("\r\n?","\n")
269-
e.writefile("/tmp/rebootschedule",t)
270-
if(luci.sys.call("cmp -s /tmp/rebootschedule /etc/config/rebootschedule")==1)then
271-
e.writefile("/etc/config/rebootschedule",t)
272-
luci.sys.call("/etc/init.d/rebootschedule restart >/dev/null")
242+
e.writefile("/tmp/autotimeset",t)
243+
if(luci.sys.call("cmp -s /tmp/autotimeset /etc/config/autotimeset")==1)then
244+
e.writefile("/etc/config/autotimeset",t)
245+
luci.sys.call("/etc/init.d/autotimeset restart >/dev/null")
273246
end
274-
e.remove("/tmp/rebootschedule")
247+
e.remove("/tmp/autotimeset")
275248
end
276249
end
277250
end
251+
278252
if nixio.fs.access("/etc/config/wolplus")then
279253
s:tab("wolplusconf",translate("网络唤醒"),translate("本页是配置/etc/config/wolplus包含网络唤醒配置文档内容。应用保存后自动重启生效"))
280254
conf=s:taboption("wolplusconf",Value,"wolplusconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
@@ -318,6 +292,29 @@ e.remove("/tmp/smartdns")
318292
end
319293
end
320294
end
295+
296+
if nixio.fs.access("/etc/config/bypass")then
297+
s:tab("bypassconf",translate("BYPASS"),translate("本页是配置/etc/config/bypass包含bypass配置文档内容。应用保存后自动重启生效"))
298+
conf=s:taboption("bypassconf",Value,"bypassconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
299+
conf.template="cbi/tvalue"
300+
conf.rows=20
301+
conf.wrap="off"
302+
conf.cfgvalue=function(t,t)
303+
return e.readfile("/etc/config/bypass")or""
304+
end
305+
conf.write=function(a,a,t)
306+
if t then
307+
t=t:gsub("\r\n?","\n")
308+
e.writefile("/tmp/bypass",t)
309+
if(luci.sys.call("cmp -s /tmp/bypass /etc/config/bypass")==1)then
310+
e.writefile("/etc/config/bypass",t)
311+
luci.sys.call("/etc/init.d/bypass restart >/dev/null")
312+
end
313+
e.remove("/tmp/bypass")
314+
end
315+
end
316+
end
317+
321318
if nixio.fs.access("/etc/config/openclash")then
322319
s:tab("openclashconf",translate("openclash"),translate("本页是配置/etc/config/openclash的文档内容。应用保存后自动重启生效"))
323320
conf=s:taboption("openclashconf",Value,"openclashconf",nil,translate("开头的数字符号(#)或分号的每一行(;)被视为注释;删除(;)启用指定选项。"))
@@ -340,5 +337,4 @@ end
340337
end
341338
end
342339

343-
344340
return m

luci-app-lucky/README.md

+22-12
Original file line numberDiff line numberDiff line change
@@ -126,31 +126,42 @@ luci-app-lucky 动态域名ddns-go服务,替代socat主要用于公网IPv6 tcp/u
126126
![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/lucky3.jpg)
127127

128128

129+
130+
131+
## 使用与授权相关说明
132+
133+
- 本人开源的所有源码,任何引用需注明本处出处,如需修改二次发布必告之本人,未经许可不得做于任何商用用途。
134+
135+
129136
# My other project
130137

131-
网络速度测试 :https://github.com/sirpdboy/NetSpeedTest
138+
- 网络速度测试 :https://github.com/sirpdboy/NetSpeedTest
139+
140+
- 定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset
132141

133-
定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset
142+
- 关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice
134143

135-
关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice
144+
- opentopd主题 : https://github.com/sirpdboy/luci-theme-opentopd
136145

137-
opentopd主题 : https://github.com/sirpdboy/luci-theme-opentopd
146+
- kucat 主题: https://github.com/sirpdboy/luci-theme-kucat
138147

139-
opentoks 主题: https://github.com/sirpdboy/luci-theme-opentoks [仿KOOLSAHRE主题]
148+
- 家长控制: https://github.com/sirpdboy/luci-theme-parentcontrol
140149

141-
btmob 主题: https://github.com/sirpdboy/luci-theme-btmob
150+
- 系统高级设置 : https://github.com/sirpdboy/luci-app-advanced
142151

143-
系统高级设置 : https://github.com/sirpdboy/luci-app-advanced
152+
- ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go
144153

145-
DDNS-GO动态域名: https://github.com/sirpdboy/luci-app-DDNS-GO
154+
- 进阶设置(系统高级设置+主题设置kucat/agron/opentopd): https://github.com/sirpdboy/luci-app-advancedplus
146155

147-
Lucky(大吉): https://github.com/sirpdboy/luci-app-lucky
156+
- 设置向导: https://github.com/sirpdboy/luci-app-wizard
148157

158+
- 分区扩容: https://github.com/sirpdboy/luci-app-partexp
159+
160+
- lukcy大吉: https://github.com/sirpdboy/luci-app-lukcy
149161

150162
## 捐助
151163

152-
-如果你觉得此项目对你有帮助,请捐助我们,以使项目能持续发展,更加完善。··请作者喝杯咖啡~~~**
153-
-你们的支持就是我的动力!**
164+
![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/说明3.jpg)
154165

155166
| <img src="https://img.shields.io/badge/-支付宝-F5F5F5.svg" href="#赞助支持本项目-" height="25" alt="图飞了😂"/> | <img src="https://img.shields.io/badge/-微信-F5F5F5.svg" height="25" alt="图飞了😂" href="#赞助支持本项目-"/> |
156167
| :-----------------: | :-------------: |
@@ -159,4 +170,3 @@ Lucky(大吉): https://github.com/sirpdboy/luci-app-lucky
159170
<a href="#readme">
160171
<img src="https://img.shields.io/badge/-返回顶部-orange.svg" alt="图飞了😂" title="返回顶部" align="right"/>
161172
</a>
162-

luci-app-passwall/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
include $(TOPDIR)/rules.mk
77

88
PKG_NAME:=luci-app-passwall
9-
PKG_VERSION:=4.64-3
9+
PKG_VERSION:=4.64-5
1010
PKG_RELEASE:=
1111

1212
PKG_CONFIG_DEPENDS:= \

0 commit comments

Comments
 (0)