Skip to content
Open

2b #10

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
401 commits
Select commit Hold shift + click to select a range
ccbf088
tailscale default stop
gl-niyin Dec 22, 2022
e9f5c4b
gl-sdk4-mtk-wifi-v2: add package
gl-zhaojianhui Dec 23, 2022
f86ec7f
gl-sdk4-mtk-wifi-v2: moved to mtk branch
gl-zhaojianhui Dec 23, 2022
31dbfa9
gl-sdk4-hw-info: support cfg partition
gl-zhaojianhui Jan 7, 2023
33f74f1
mwan3 : update mwan3 config track ip
gl-yangpo Jan 29, 2023
954ad1c
lua-eco: update to latest version
gl-zhaojianhui Jan 31, 2023
397f083
lua-eco: update to latest version
gl-zhaojianhui Jan 31, 2023
fe7695a
lua-eco: update to latest version
gl-zhaojianhui Jan 31, 2023
3c8dac6
lua-eco: update to latest
gl-zhaojianhui Feb 1, 2023
a28bf9e
lua-eco: update to latest
gl-zhaojianhui Feb 1, 2023
02e564a
add minidlna
luochongjun Feb 1, 2023
7c884bb
lua-eco: update
gl-zhaojianhui Feb 2, 2023
f579547
mwan3 fit modem dual sim
gl-yangpo Feb 2, 2023
a53c24c
lua-eco: update to latest
gl-zhaojianhui Feb 2, 2023
48f2479
lua-eco: update to latest
gl-zhaojianhui Feb 3, 2023
b540199
lua-eco: update to latest
gl-zhaojianhui Feb 6, 2023
9b8da2d
lua-eco: update to latest
gl-zhaojianhui Feb 6, 2023
3560e2b
lua-eco: update to latest
gl-zhaojianhui Feb 6, 2023
22b58ac
lua-eco: update to latest
gl-zhaojianhui Feb 7, 2023
8e5ed3d
lua-eco: update to latest
gl-zhaojianhui Feb 8, 2023
cbde817
lua-eco: update to latest
gl-zhaojianhui Feb 10, 2023
ac1ff5f
lua-eco: fix Makefile
gl-zhaojianhui Feb 10, 2023
41da970
lua-eco: update to latest
gl-zhaojianhui Feb 11, 2023
2e2aae0
lua-eco: update
gl-zhaojianhui Feb 13, 2023
9433a1c
lua-eco: fix Makefile
gl-zhaojianhui Feb 13, 2023
a23ceec
mwan3: set initial_state to offline
gl-yangpo Feb 17, 2023
d580dbf
lua-eco: update to latest
gl-zhaojianhui Feb 21, 2023
9cdb886
smstools3: Specified bus
gl-niyin Feb 21, 2023
ae20e9e
lua-eco: update to latest
gl-zhaojianhui Feb 22, 2023
e168646
nginx: only keep /etc/nginx/nginx.cer and /etc/nginx/nginx.key
gl-zhaojianhui Feb 22, 2023
2d601d9
lua-eco: update to latest
gl-zhaojianhui Feb 23, 2023
f6f43c9
lua-eco: update to latest
gl-zhaojianhui Feb 28, 2023
307be36
add zerotier
Mar 2, 2023
7862f3f
mwan3: 使用clean_client_conntrack清除连接
gl-yangpo Mar 2, 2023
20ed9a6
mwan3: unset the initial state of mwan3 to offline
gl-yangpo Mar 6, 2023
16d4e89
lua-eco: update to latest
gl-zhaojianhui Mar 7, 2023
a583b81
lua-eco: update to latest
gl-zhaojianhui Mar 8, 2023
bc6ee3f
mwan3: 修复modem掉线后才开启双sim自动转移开关不会触发热插拔脚本
gl-yangpo Mar 14, 2023
017bd93
add parental control
luochongjun Mar 16, 2023
64e5a03
tailscale: add reserved configuration upgrade
gl-niyin Mar 16, 2023
a837720
smstools3: 修复获取modem bus错误导致短信服务启动失败
gl-yangpo Mar 20, 2023
807fbe1
mwan3: set reliability to 1
gl-yangpo Mar 21, 2023
f8e11cb
mwan3: 修复双sim卡错误触发切换动作
gl-yangpo Mar 23, 2023
341ee97
parental-control: 修复相关配置接口未及时同步文件到flash的问题
luochongjun Mar 23, 2023
e761516
add usb-serial-ch343
lancersky Mar 24, 2023
c6eabb9
parental-control: 修复shortcut开启后127.0.0.1无法访问的问题
luochongjun Mar 25, 2023
7c8ad22
add ot-br-posix
lancersky Mar 27, 2023
435ee98
ot-br-posix: improve README.md
lancersky Mar 27, 2023
9be5de9
ot-br-posix: improve README.md
lancersky Mar 27, 2023
eced609
ot-br-posix: fix compile failed in ipq40xx platform
lancersky Mar 27, 2023
0ad264d
ot-br-posix: add http api
lancersky Mar 27, 2023
0bbc3b3
mwan3: restore mangle rule after firewall restart
dengxinfa Mar 29, 2023
038fe95
gl-sdk4-hw-info: support export device cert and key
gl-zhaojianhui Mar 29, 2023
f21f043
gl-sdk4-hw-fino: fix code style
gl-zhaojianhui Mar 30, 2023
eace397
gl-sdh4-hwinfo: fix read emmc more than a sector size
gl-zhaojianhui Mar 30, 2023
8ee21c9
ot-br-posix: improve tty config init
lancersky Mar 31, 2023
39aa568
lua-eco: update to latest
gl-zhaojianhui Apr 1, 2023
3436df0
parental-control: fix BUG 7760
luochongjun Apr 3, 2023
4a7a27d
mwan3: restore mangle rule after firewall restart
dengxinfa Apr 6, 2023
2d7b24c
ot-br-posix: improve import_thread_network()
lancersky Apr 6, 2023
f5303ec
lua-eco: update to latest
gl-zhaojianhui Apr 7, 2023
2371181
ot-br-posix: handle hotplug event
lancersky Apr 10, 2023
5d976b7
parental-control: 修复与shortcut配合时可能的段错误
luochongjun Apr 10, 2023
8eee99a
Revert "mwan3: restore mangle rule after firewall restart"
dengxinfa Apr 10, 2023
429f8a2
ot-br-posix: improve set_bbr_config()
lancersky Apr 11, 2023
662c2c2
lua-eco: update to latest
gl-zhaojianhui Apr 12, 2023
ca5fdd6
mwan3: interface online status no consider iptable rule
dengxinfa Apr 23, 2023
7b11611
ot-br-posix: remove /etc/hotplug.d/net/30-wpan
lancersky Apr 23, 2023
dc146b6
ot-br-posix: remove firewall setting
lancersky Apr 28, 2023
9b31bae
mwan3: interface online status no consider ip route
dengxinfa May 5, 2023
eb4a14a
ot-br-posix: bump to GSDK v4.2.3
lancersky May 6, 2023
3e1d597
fix: sync mwan3/iface_state/interface and mwan3/interface/STATUS
dengxinfa May 9, 2023
7cece56
mwan3: 接口起来后没有完全kill掉track进程,影响状态检测
gl-yangpo May 9, 2023
18814eb
remove parental-control and tertf
luochongjun May 10, 2023
ec81712
mwan3: 修复mwan3track ifstatus获取报错
gl-yangpo May 10, 2023
8c1b4a9
ot-br-posix: remove otbr.lua
lancersky May 12, 2023
0f27bda
gl-sdk4-fan: 明确风扇相关 attr 路径
gl-zhaojianhui May 26, 2023
d74ca07
ot-br-posix: enable OT_FIREWALL
lancersky May 31, 2023
9a995fb
ot-br-posix: improve README.md
lancersky Jun 6, 2023
47972d1
ot-br-posix: remove unuse
lancersky Jun 7, 2023
561749a
ot-br-posix: disable srp server before setting
lancersky Jun 8, 2023
61a338d
ot-br-posix: bump to GSDK v4.3.0
lancersky Jun 9, 2023
ca81a6c
lua-eco: update to 2.3.0
gl-zhaojianhui Jun 13, 2023
4641f2f
lua-eco: update to latest
gl-zhaojianhui Jun 13, 2023
a9be453
ot-br-posix: BRs default to 256 address cache entries
lancersky Jun 14, 2023
ab10888
lua-eco: revert
gl-zhaojianhui Jun 14, 2023
ecf949b
ot-br-posix: improve TXT record show
lancersky Jun 15, 2023
35a157b
lua-eco: update to latest
gl-zhaojianhui Jun 15, 2023
a1880ca
lua-eco: update to latest
gl-zhaojianhui Jun 15, 2023
0da7df2
lua-eco: update to latest
gl-zhaojianhui Jun 19, 2023
a9357f7
ot-br-posix: revert to GSDK v4.2.3
lancersky Jun 21, 2023
d39ec6a
lua-eco: update to latest
gl-zhaojianhui Jun 25, 2023
a99d134
ot-br-posix: restore bbr interface when disable repeater
lancersky Jun 25, 2023
94ea0e2
lua-eco: update to latest
gl-zhaojianhui Jun 26, 2023
34eae0b
lua-eco: update to latest
gl-zhaojianhui Jun 26, 2023
e73a053
ot-br-posix: filtering expired joiner
lancersky Jun 26, 2023
4287205
lua-eco: update to latest
gl-zhaojianhui Jun 29, 2023
3ce23ac
lua-eco: update to latest
gl-zhaojianhui Jul 3, 2023
c3c41ce
lua-eco: update to latest
gl-zhaojianhui Jul 6, 2023
798f5a1
lua-eco: update to latest
gl-zhaojianhui Jul 11, 2023
4018071
ot-br-posix: change default vendor and product name in meshcop service
lancersky Jul 11, 2023
fb12089
gl-sdk4-hwinfo: compatible with newer kernel
gl-zhaojianhui Jul 12, 2023
17bad52
gl-sdk4-hw-info: fix parse cfg partition size for emmc
gl-zhaojianhui Jul 12, 2023
cd160ee
Remove cache during tor connection
Jul 17, 2023
26cc770
lua-eco: update to latest
gl-zhaojianhui Jul 18, 2023
bd49696
lua-eco: update to latest
gl-zhaojianhui Jul 24, 2023
9654671
lua-eco: update to latest
gl-zhaojianhui Jul 24, 2023
a23323a
lua-eco: update to latest
gl-zhaojianhui Jul 27, 2023
3d18932
lua-eco: update to latest
gl-zhaojianhui Jul 27, 2023
c924c76
mwan3: compatible with mcu to get the current network mode
Jul 28, 2023
a0aa569
lua-eco: update to latest
gl-zhaojianhui Aug 7, 2023
2de0513
add fullconenat package
gl-zhangyu Aug 11, 2023
13c95ed
smstool3: disable DISABLE_INET_SOCKET macro
gl-fangzekun Aug 16, 2023
45889cb
update fullconenat hash
gl-zhangyu Aug 17, 2023
39187d4
mwan3: fix mwan3 switches the priority network, the probability canno…
Aug 21, 2023
6f861aa
lua-eco: update to latest
gl-zhaojianhui Aug 23, 2023
ad47fa7
lua-eco: update to latest
gl-zhaojianhui Aug 24, 2023
738a19d
lua-eco: update to latest
gl-zhaojianhui Aug 25, 2023
f92d901
lua-lsqlite3: add new package
gl-zhaojianhui Aug 29, 2023
34ea916
libuci-lua-53: add new package
gl-zhaojianhui Aug 29, 2023
4bcdb23
lua-cjosn: add build VARIANT for LUA5.3
gl-zhaojianhui Aug 30, 2023
0e32da4
ot-br-posix: remove unuse
lancersky Aug 30, 2023
8e1f268
lsqlite3-lua53: improve
gl-zhaojianhui Aug 31, 2023
3bc3dee
lua-cjson: distinguish integer and float in lua5.3
gl-zhaojianhui Aug 31, 2023
f0c7de8
lua-eco: update to latest
gl-zhaojianhui Sep 1, 2023
5dd6758
mwan3: mwan3 compatible with fw4
Sep 1, 2023
8043838
lua-eco: update to latest
gl-zhaojianhui Sep 1, 2023
830fdbd
libiwinfo-lua53: new package
gl-zhaojianhui Sep 1, 2023
81eb711
lua-eco: update to latest
gl-zhaojianhui Sep 4, 2023
75d5072
lua-eco: update to latest
gl-zhaojianhui Sep 4, 2023
5642f71
lua-eco: update to latest
gl-zhaojianhui Sep 4, 2023
29e0ba7
libiwinfo-lua53: fix Makefile
gl-zhaojianhui Sep 4, 2023
4f001b0
lua-eco: update to latest
gl-zhaojianhui Sep 5, 2023
4845dc1
libuci-lua-53: fix build fail
gl-zhaojianhui Sep 6, 2023
17eda6d
lua-eco: update to latest
gl-zhaojianhui Sep 6, 2023
714602b
Optimize tor program
Sep 6, 2023
59f6631
lua-eco: update to latest
gl-zhaojianhui Sep 8, 2023
8133a0e
lua-eco: update to latest
gl-zhaojianhui Sep 9, 2023
df254be
mwan3: 修复死锁问题
luochongjun Sep 11, 2023
f3128ba
lua-eco: update to latest
gl-zhaojianhui Sep 11, 2023
5651e5c
mwan3: 修复进程异常退出导致的死锁
luochongjun Sep 12, 2023
1f17408
lua-eco: update to latest
gl-zhaojianhui Sep 16, 2023
382f7bf
lua-eco: update to latest
gl-zhaojianhui Sep 18, 2023
84c917a
fullconenat: Fix compilation issues
gl-zhangyu Sep 21, 2023
72be5ac
ot-br-posix: improve tty config
lancersky Sep 22, 2023
668e8e2
tailscale: 修复开启tailscale后手动断电/etc/resolv.conf被清空问题
gl-fangzekun Sep 25, 2023
dad637d
lua-cjson: fix build for lua5.3 on openwrt-18.06
gl-zhaojianhui Sep 26, 2023
b9d133b
lua-eco: update to latest
gl-zhaojianhui Oct 7, 2023
4beb204
lua-eco: update to 3.0.1
gl-zhaojianhui Oct 8, 2023
16c5c09
ot-br-posix: fix CMAKE_OPTIONS override
lancersky Oct 9, 2023
3783955
ot-br-posix: add latest version
lancersky Oct 9, 2023
7ce36eb
ot-br-posix: fix compile failed
lancersky Oct 9, 2023
77b155a
ot-br-posix: improve Makefile
lancersky Oct 9, 2023
8b3d71b
ot-br-posix: remove old version
lancersky Oct 10, 2023
d7150dd
add gn
lancersky Oct 10, 2023
f4cba4f
ot-br-posix: change default config
lancersky Oct 12, 2023
576fe6f
ot-br-posix: fix PKG_MIRROR_HASH
lancersky Oct 12, 2023
86b1d0f
ot-br-posix: add borderid and nat64status
lancersky Oct 16, 2023
c74d1f5
ot-br-posix: remove unuse and add setnat64config
lancersky Oct 18, 2023
eb256cb
ot-br-posix: remove unuse
lancersky Oct 19, 2023
bdc30b7
ot-br-posix: add nat64 config
lancersky Oct 19, 2023
b22fde3
lua-eco: update to latest
gl-zhaojianhui Oct 23, 2023
e1fa79d
lua-eco: update to latest
gl-zhaojianhui Oct 24, 2023
4d2f237
ot-br-posix: improve Makefile
lancersky Oct 24, 2023
771b5bc
lua-eco: update to latest
gl-zhaojianhui Oct 29, 2023
76cef18
gl-sdk4-hwinfo: fix panic while multi install
gl-zhaojianhui Oct 31, 2023
f9f3dbd
lsqlite3-lua5.3: rename to lsqlite3-lua5.3-gl
gl-zhaojianhui Nov 7, 2023
fbef98b
lua-eco: update to latest
gl-zhaojianhui Nov 7, 2023
67b61e9
lua-eco: update to latest
gl-zhaojianhui Nov 21, 2023
20d8356
Revert "lua-eco: update to latest"
gl-zhaojianhui Nov 22, 2023
e069e0b
lua-eco: update to latest
gl-zhaojianhui Nov 22, 2023
044025e
Revert "lua-eco: update to latest"
gl-zhaojianhui Nov 22, 2023
7dfe0aa
lua-eco: update to latest
gl-zhaojianhui Nov 22, 2023
7a66412
lua-eco: update to latest
gl-zhaojianhui Nov 23, 2023
82340d1
lua-eco: update to latest
gl-zhaojianhui Nov 24, 2023
208e320
libuci-lua-53: add an iter function
gl-zhaojianhui Nov 25, 2023
832d503
tailscale: 屏蔽log打印
gl-fangzekun Nov 28, 2023
e3cc2dd
lua-eco: fix stack-overflow for ubus call
gl-zhaojianhui Dec 5, 2023
e876348
lua-eco: support set timeout for ubus call
gl-zhaojianhui Dec 5, 2023
ce4f5c6
Revert "lua-eco: support set timeout for ubus call"
gl-zhaojianhui Dec 5, 2023
ffb773b
lua-eco: support set ubus call timeout
gl-zhaojianhui Dec 5, 2023
8242dea
lua-eco: update to latest
gl-zhaojianhui Dec 16, 2023
f53542e
lua-eco: update to latest
gl-zhaojianhui Dec 18, 2023
3f06eea
lua-eco: update to latest
gl-zhaojianhui Dec 25, 2023
18952d3
fan: Fan module temperature detection added
Dec 28, 2023
8673906
fan: fix fan module bug
Jan 5, 2024
0dcaa0c
lua-eco: update to latest
gl-zhaojianhui Jan 5, 2024
065f593
lua-eco: update to latest
gl-zhaojianhui Jan 8, 2024
934ef37
style(hw-info): Tab to space
gl-luxibao Jan 15, 2024
30d2c7f
feat(hw-info): added device_submodel for GL-X300B
gl-luxibao Jan 15, 2024
eae1659
feat(hw-info): added device_submodel for GL-X300B
gl-luxibao Jan 15, 2024
7941d11
lua-eco: update to latest
gl-zhaojianhui Jan 16, 2024
6c2913f
fix(libuci-lua-53): remove duplicate `const`
gl-zhaojianhui Jan 17, 2024
b1fdd40
feat: add ddns-scripts
lincolnzh Jan 22, 2024
fb41a3d
feat(ddns-scripts): add glddns.com.json
lincolnzh Jan 22, 2024
80f0d25
fix(ddns-scripts): Adapter gl-sdk4-ddns
lincolnzh Jan 22, 2024
4eba424
fix(ddns-scripts): optimization dynamic_dns_updater.sh
lincolnzh Feb 28, 2024
b5b9857
feat(lua-eco): update to latest
gl-zhaojianhui Mar 5, 2024
65ef604
Revert "feat(lua-eco): update to latest"
gl-zhaojianhui Mar 5, 2024
6fa07bb
feat(lua-eco): update to latest
gl-zhaojianhui Mar 6, 2024
dacd748
feat(lua-eco): update to latest
gl-zhaojianhui Mar 9, 2024
6fb50e0
feat(lua-eco): update to latest
gl-zhaojianhui Mar 13, 2024
a212b82
lua-eco: update to latest
gl-zhaojianhui Mar 19, 2024
ec4fac1
lua-eco: update to latest
gl-zhaojianhui Mar 20, 2024
129fa73
feat(lua-eco): update to latest
gl-zhaojianhui Mar 25, 2024
d957439
feat(lua-eco): update to latest
gl-zhaojianhui Mar 27, 2024
4a245a6
fix(gl-sdk4-hw-info): compatible with kernel 5.17+
gl-zhaojianhui Mar 28, 2024
a77b323
fix(gl-sdk4-hw-info): compatible with kernel 6.5+
gl-zhaojianhui Mar 29, 2024
2da54a3
feat(lua-eco): update to 3.3.0
gl-zhaojianhui Mar 30, 2024
0b9d886
feat(lua-eco): backport some patchs
gl-zhaojianhui Apr 8, 2024
506c01e
feat: update tailscale to 1.58.2,update golang to 1.21
lincolnzh Apr 8, 2024
93a4305
feat(lua-eco): backport some patchs
gl-zhaojianhui Apr 9, 2024
33ba764
feat(lua-eco): backport some patchs
gl-zhaojianhui Apr 11, 2024
ee21267
Revert "feat(lua-eco): backport some patchs"
gl-zhaojianhui Apr 11, 2024
267f9b3
feat(lua-eco): backport some patchs
gl-zhaojianhui Apr 11, 2024
47b1c3c
feat(lua-eco): backport some patch
gl-zhaojianhui Apr 12, 2024
a386054
Revert "feat(lua-eco): backport some patch"
gl-zhaojianhui Apr 12, 2024
3e55f0b
feat(lua-eco): backport some patchs
gl-zhaojianhui Apr 12, 2024
7583125
fix(rtty): Fix compilation with musl libc 1.2.5
gl-zhaojianhui Apr 17, 2024
74da9ea
fix(lua-eco): Fix compilation with musl libc 1.2.5
gl-zhaojianhui Apr 17, 2024
461d6d5
fix(tailscale): Add local http request timeout config
yongpingxie Apr 18, 2024
8f9d0eb
fix(tailscale): Rename timeout patch
yongpingxie Apr 18, 2024
cb48623
fix(tailscale): Remove 1 patch
yongpingxie Apr 18, 2024
2babf99
feat(lua-eco): update to 3.4.0
gl-zhaojianhui Apr 22, 2024
cac9434
feat(lua-eco): update to 3.4.1
gl-zhaojianhui Apr 24, 2024
07b5d10
feat(lua-eco): refactor mqtt reimplemented in pure lua
gl-zhaojianhui Apr 24, 2024
0e05058
Revert "feat(lua-eco): refactor mqtt reimplemented in pure lua"
gl-zhaojianhui Apr 24, 2024
9d7750b
Revert "feat(lua-eco): update to 3.4.1"
gl-zhaojianhui Apr 24, 2024
f11a5db
feat(lua-eco): update to latest
gl-zhaojianhui Apr 24, 2024
c694045
Revert "feat(lua-eco): update to latest"
gl-zhaojianhui Apr 24, 2024
fb784ea
feat(lua-eco): update to latest
gl-zhaojianhui Apr 24, 2024
dde6dac
fix(lua-eco): fix parse HTTP/1.0
gl-zhaojianhui Apr 25, 2024
2b1fb58
fix(lua-eco): backport from upstream
gl-zhaojianhui Apr 26, 2024
fc1d712
fix(gl-sdk4-fan): compatible with kernel 6.0+
gl-zhaojianhui Apr 29, 2024
449706a
feat(lua-eco): update to latest
gl-zhaojianhui May 6, 2024
c935bc2
feat(lua-eco): update to latest
gl-zhaojianhui May 6, 2024
a914a3f
fix(tailscale): block log of tailscale
yongpingxie May 7, 2024
91c33bf
feat(lua-eco): update to latest
gl-zhaojianhui May 13, 2024
81a388e
perf(gl-sdk4-hwinfo): optimize code
gl-zhaojianhui May 13, 2024
3318da5
fix(gl-sdk4-hwinfo): fix crash due to buffer overflow in make_device_…
gl-zhaojianhui May 13, 2024
222f2bb
libiwinfo-lua53: add support get htmode
gl-zhaojianhui May 15, 2024
68c12e4
fix(nginx-ssl): wait for wifi init ready
dengxinfa May 18, 2024
aa078a8
Revert "fan: fix fan module bug"
May 20, 2024
c20eb87
Revert "fan: Fan module temperature detection added"
May 20, 2024
0cd0173
fix(libiwinfo-lua53): check iw->htmode if NULL.
gl-zhaojianhui May 22, 2024
5558c14
feat(ch343): bump to v2024.4.8
lancersky May 23, 2024
22a4aa7
fix(ch343): binding PKG_SOURCE_VERSION
lancersky May 23, 2024
d49f141
fix(lua-eco): close socket when returned from function
gl-zhaojianhui May 24, 2024
8e73545
feat(lua-eco): increase release number
gl-zhaojianhui May 24, 2024
4710f76
feat: Added firmware type marks for older products in art
Allen-Zhang183 May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
706 changes: 706 additions & 0 deletions ddns-scripts/Makefile

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions ddns-scripts/files/etc/config/ddns
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Please read https://openwrt.org/docs/guide-user/base-system/ddns
#
config ddns "global"
option ddns_dateformat "%F %R"
# option ddns_rundir "/var/run/ddns"
# option ddns_logdir "/var/log/ddns"
option ddns_loglines "250"
option upd_privateip "0"


config service "myddns_ipv4"
option service_name "dyndns.org"
option lookup_host "yourhost.example.com"
option domain "yourhost.example.com"
option username "your_username"
option password "your_password"
option interface "wan"
option ip_source "network"
option ip_network "wan"

config service "myddns_ipv6"
option update_url "http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update?hostname=[DOMAIN]&myip=[IP]"
option lookup_host "yourhost.example.com"
option domain "yourhost.example.com"
option username "your_username"
option password "your_password"
option use_ipv6 "1"
option interface "wan6"
option ip_source "network"
option ip_network "wan6"

19 changes: 19 additions & 0 deletions ddns-scripts/files/etc/hotplug.d/iface/ddns
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

enable=`uci -q get ddns.glddns.enabled`
if [ "$enable" = 1 -a "$INTERFACE" != "lan" ];then
case "$ACTION" in
ifdown |\
ifup)
/etc/init.d/ddns restart
;;
esac
fi

if [ "$enable" = 0 -a "$INTERFACE" != "lan" ];then
case "$ACTION" in
ifdown)
/etc/init.d/ddns stop
;;
esac
fi
45 changes: 45 additions & 0 deletions ddns-scripts/files/etc/init.d/ddns
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh /etc/rc.common
START=95
STOP=10

PROG=/usr/lib/ddns/dynamic_dns_updater.sh
bypassvpn=`uci -q get vpnpolicy.global.service_policy`

if [ $bypassvpn = 1 ];then
PROG="sudo -g nonevpn /usr/lib/ddns/dynamic_dns_updater.sh"
else
PROG=/usr/lib/ddns/dynamic_dns_updater.sh
fi



boot() {
return 0
}

reload() {
$PROG -- reload
return 0
}

restart() {
$PROG -- stop
sleep 1 # give time to shutdown
enable=`uci -q get ddns.glddns.enabled`
if [ "$enable" = 1 ];then
$PROG -- start
fi
}

start() {
enable=`uci -q get ddns.glddns.enabled`
if [ "$enable" = 1 ];then
$PROG -- start
fi
}

stop() {
$PROG -- stop
return 0
}

172 changes: 172 additions & 0 deletions ddns-scripts/files/usr/bin/ddns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
#!/bin/sh
#
# Copyright (C) 2020 TDT AG <[email protected]>
#
# This is free software, licensed under the GNU General Public License v2.
# See https://www.gnu.org/licenses/gpl-2.0.txt for more information.
#

. /lib/functions.sh

DDNS_PACKAGE_DIR="/usr/share/ddns"
URL="https://raw.githubusercontent.com/openwrt/packages/master/net/ddns-scripts/files"

usage() {
local code="$1"
local msg="$2"

echo "$msg"
echo ""
echo "Usage: $(basename "$0") <command> <action> <service>"
echo ""
echo "Supported ddns <command>:"
echo " service: Command for custom ddns service providers"
echo ""
echo "Supported ddns 'service' command <action>:"
echo " update: Update local custom ddns service list"
echo " list-available: List all available custom service providers"
echo " list-installed: List all installed custom service providers"
echo " install <service>: Install custom service provider"
echo " remove <service>: Remove custom service provider"
echo " purge: Remove local custom ddns services"

exit "$code"
}

action_update() {
local cacert

config_load ddns
config_get url global 'url' "${URL}${DDNS_PACKAGE_DIR}"
config_get cacert global 'cacert' "IGNORE"
url="${url}/list"

mkdir -p "${DDNS_PACKAGE_DIR}"

if [ "$cacert" = "IGNORE" ]; then
uclient-fetch \
--no-check-certificate \
"$url" \
-O "${DDNS_PACKAGE_DIR}/list"
elif [ -f "$cacert" ]; then
uclient-fetch \
--ca-certificate="${cacert}" \
"$url" \
-O "${DDNS_PACKAGE_DIR}/list"
elif [ -n "$cacert" ]; then
echo "Certification file not found ($cacert)"
exit 5
fi
}

action_list_available() {
if [ -f "${DDNS_PACKAGE_DIR}/list" ]; then
cat "${DDNS_PACKAGE_DIR}/list"
else
echo "No custom service list file found. Please download first"
exit 3
fi
}

action_list_installed() {
if [ -d "${DDNS_PACKAGE_DIR}/custom" ]; then
ls "${DDNS_PACKAGE_DIR}/custom"
else
echo "No custom services installed"
exit 4
fi
}

action_install() {
local service="$1"

local url cacert

config_load ddns
config_get url global 'url' "${URL}${DDNS_PACKAGE_DIR}/default"
config_get cacert global 'cacert' "IGNORE"
url="${url}/${service}.json"

if [ -z "$service" ]; then
usage "4" "No custom service specified"
fi

mkdir -p "${DDNS_PACKAGE_DIR}/custom"

if [ "$cacert" = "IGNORE" ]; then
uclient-fetch \
--no-check-certificate \
"${url}" \
-O "${DDNS_PACKAGE_DIR}/custom/${service}.json"
elif [ -f "$cacert" ]; then
uclient-fetch \
--ca-certifcate="${cacert}" \
"${url}" \
-O "${DDNS_PACKAGE_DIR}/custom/${service}.json"
elif [ -n "$cacert" ]; then
echo "Certification file not found ($cacert)"
exit 5
fi
}

action_remove() {
local service="$1"
if [ -z "$service" ]; then
usage "4" "No custom service specified"
fi

rm "${DDNS_PACKAGE_DIR}/custom/${service}.json"
}

action_purge() {
rm -rf "${DDNS_PACKAGE_DIR}/custom"
rm -rf "${DDNS_PACKAGE_DIR}/list"
}

sub_service() {
local action="$1"
local service="$2"

case "$action" in
update)
action_update
;;
list-available)
action_list_available
;;
list-installed)
action_list_installed
;;
purge)
action_purge
;;
install)
action_install "$service"
;;
remove)
action_remove "$service"
;;
*)
usage "2" "Action not supported"
;;
esac
}

main() {
local cmd="$1"
local action="$2"
local service="$3"

[ "$#" -eq 0 ] && usage "1"

case "${cmd}" in
service)
sub_service "${action}" "${service}"
;;
*)
usage "1" "Command not supported"
;;
esac
}

main "$@"
Loading