Skip to content

Commit 8c36440

Browse files
authored
Merge pull request #3 from garypang13/master
3
2 parents f1194cf + c9ca131 commit 8c36440

File tree

5 files changed

+69
-5
lines changed

5 files changed

+69
-5
lines changed

.github/workflows/build-openwrt.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ jobs:
175175
continue-on-error: true
176176
run: |
177177
curl -fsSL git.io/file-transfer | sh
178-
cowurl=$(./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE})
178+
cowurl=$(./transfer cow --block 2621440 -s --no-progress ${FIRMWARE})
179179
cowurl=$(echo $cowurl | grep -o -E "https[^ ]*")
180180
echo "::set-env name=COWURL::$cowurl"
181-
echo "Download Link: ${{ env.EMOJI }} ${{ env.COWURL }} ${{ env.EMOJI }}"
181+
echo "Download Link: ${{ env.EMOJI }} $cowurl ${{ env.EMOJI }}"
182182
183183
- name: Create release
184184
id: create_release
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
# Copyright (C) 2016-2017 GitHub
3+
#
4+
# This is free software, licensed under the GNU General Public License v3.
5+
# See /LICENSE for more information.
6+
7+
include $(TOPDIR)/rules.mk
8+
9+
PKG_NAME:=default-settings
10+
PKG_VERSION:=1.1
11+
PKG_RELEASE:=57
12+
PKG_LICENSE:=GPLv3
13+
PKG_LICENSE_FILES:=LICENSE
14+
15+
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
16+
17+
include $(TOPDIR)/feeds/luci/luci.mk
18+
19+
define Package/default-settings
20+
SECTION:=luci
21+
CATEGORY:=LuCI
22+
TITLE:=LuCI support for Default Settings
23+
PKGARCH:=all
24+
DEPENDS:=+luci-base +@LUCI_LANG_zh-cn
25+
endef
26+
27+
define Package/default-settings/description
28+
Language Support Packages.
29+
endef
30+
31+
define Build/Configure
32+
endef
33+
34+
define Build/Compile
35+
endef
36+
37+
define Package/default-settings/install
38+
$(INSTALL_DIR) $(1)/etc/uci-defaults
39+
$(INSTALL_BIN) ./files/zzz-default-settings $(1)/etc/uci-defaults/99-default-settings
40+
endef
41+
42+
$(eval $(call BuildPackage,default-settings))
43+
$(foreach pkg,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(pkg))))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
msgid "Disable IPv6 DNS forwards"
2+
msgstr "禁止解析 IPv6 DNS 记录"
3+
4+
msgid "Filter IPv6(AAAA) DNS Query Name Resolve"
5+
msgstr "过滤掉 IPv6(AAAA) ,只返回 IPv4 DNS 域名记录"
6+
7+
msgid "Minimum TTL to send to clients"
8+
msgstr "客户端缓存的最小 DNS TTL"
9+
10+
msgid "Modify DNS entries minimum TTL (max is 86400, 0 is no modify)"
11+
msgstr "修改发送到客户端的域名记录的 TTL 时间 (最大 86400, 0 表示不修改)"

patches/filter-aaaa.patch

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- /feeds/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
2+
+++ /feeds/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
3+
@@ -185,2 +185,7 @@
4+
_('Additional Hosts files')).optional = true;
5+
+
6+
+ o = s.taboption("advanced", form.Flag, "filter_aaaa",
7+
+ _('Disable IPv6 DNS forwards'),
8+
+ _('Filter IPv6(AAAA) DNS Query Name Resolve'));
9+
+ o.optional = true;
10+

patches/mini-ttl.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
@@ -343,2 +343,9 @@
44

55
+ o = s.taboption("advanced", form.Value, "mini_ttl",
6-
+ _("Minimum TTL to send to clients"),
7-
+ _("Modify DNS entries minimum TTL (max is 3600, 0 is no modify)"))
6+
+ _('Minimum TTL to send to clients'),
7+
+ _('Modify DNS entries minimum TTL (max is 86400, 0 is no modify)'))
88
+ o.optional = true
9-
+ o.datatype = "range(0,3600)"
9+
+ o.datatype = "range(0,86400)"
1010
+ o.placeholder = 0
1111
+
1212
s.taboption('tftp', form.Flag, 'enable_tftp',

0 commit comments

Comments
 (0)