Skip to content

Commit c7952ae

Browse files
committed
update
1 parent e32c2e7 commit c7952ae

File tree

13 files changed

+156
-700
lines changed

13 files changed

+156
-700
lines changed

devices/common/.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ CONFIG_VERSIONOPT=y
9999
CONFIG_VERSION_MANUFACTURER="Kiddin'"
100100
CONFIG_VERSION_FILENAMES=n
101101
CONFIG_VERSION_CODE_FILENAMES=n
102+
CONFIG_VERSION_HOME_URL="https://openwrt.ai/"
102103

103104
CONFIG_KERNEL_XDP_SOCKETS=y
104105

devices/common/diy.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ sed -i "s?targets/%S/packages?targets/%S/\$(LINUX_VERSION)?" include/feeds.mk
99

1010
sed -i '/ refresh_config();/d' scripts/feeds
1111

12+
sed -i "s?git.openwrt.org/\(project\|feed\)?github.com/openwrt?g" feeds.conf.default
13+
1214
./scripts/feeds update -a
1315
./scripts/feeds install -a -p kiddin9 -f
1416
./scripts/feeds install -a
@@ -30,8 +32,9 @@ wget -N https://github.com/immortalwrt/immortalwrt/raw/refs/heads/openwrt-24.10/
3032
wget -N https://github.com/immortalwrt/immortalwrt/raw/refs/heads/openwrt-24.10/package/firmware/wireless-regdb/patches/600-custom-change-txpower-and-dfs.patch -P package/firmware/wireless-regdb/patches/
3133
wget -N https://github.com/immortalwrt/immortalwrt/raw/refs/heads/master/config/Config-kernel.in -P config/
3234

33-
rm -rf package/libs/openssl package/network/services/ppp
35+
rm -rf package/libs/openssl package/network/services/ppp feeds/luci/modules/luci-mod-network
3436
git_clone_path openwrt-24.10 https://github.com/immortalwrt/immortalwrt package/libs/openssl package/network/services/ppp
37+
git_clone_path separate-dhcp-dns https://github.com/Alphix/luci modules/luci-mod-network && mv modules/luci-mod-network feeds/luci/modules/
3538

3639
echo "$(date +"%s")" >version.date
3740
sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile
@@ -41,6 +44,7 @@ coremark wget-ssl curl autocore htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr b
4144

4245
sed -i "s/procd-ujail//" include/target.mk
4346

47+
4448
sed -i "s/^.*vermagic$/\techo '1' > \$(LINUX_DIR)\/.vermagic/" include/kernel-defaults.mk
4549

4650
status=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/kwrt-packages/actions/runs" | jq -r '.workflow_runs[0].status')

devices/common/patches/luci-base.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,26 @@
117117
};
118118

119119

120+
--- a/package/feeds/luci/luci-base/htdocs/luci-static/resources/network.js
121+
+++ b/package/feeds/luci/luci-base/htdocs/luci-static/resources/network.js
122+
@@ -2560,6 +2560,16 @@ Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ {
123+
return (this._ubus('dynamic') == true);
124+
},
125+
126+
+ /**
127+
+ * Checks whether this logical interface is pending.
128+
+ *
129+
+ * @returns {boolean}
130+
+ * returns `true` when the interface is pending or `false` when it is not.
131+
+ */
132+
+ isPending: function() {
133+
+ return (this._ubus('pending') == true);
134+
+ },
135+
+
136+
/**
137+
* Checks whether this interface is an alias interface.
138+
*
139+
120140
--- a/package/feeds/luci/luci-base/htdocs/luci-static/resources/network.js
121141
+++ b/package/feeds/luci/luci-base/htdocs/luci-static/resources/network.js
122142
@@ -4376,4 +4376,10 @@ WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */
Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,24 @@
1-
--- a/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
2-
+++ b/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
3-
@@ -337,6 +337,25 @@ return view.extend({
4-
s.tab('mxhosts', _('MX'));
5-
s.tab('cnamehosts', _('CNAME'));
6-
s.tab('pxe_tftp', _('PXE/TFTP'));
7-
+ s.tab('custom_domain', _('Custom Redirect Domain'));
8-
+
9-
+ o = s.taboption('custom_domain', form.SectionValue, 'domain', form.GridSection, 'domain', null,
10-
+ _('Define a custom domain name and the corresponding PTR record'));
11-
+
12-
+ ss = o.subsection;
13-
+ ss.addremove = true;
14-
+ ss.anonymous = true;
15-
+
16-
+ so = ss.option(form.Value, 'name', _('Domain Name'));
17-
+ so.datatype = 'hostname';
18-
+ so.rmempty = false;
19-
+
20-
+ so = ss.option(form.Value, 'ip', _('<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address'));
21-
+ so.datatype = 'or(ip4addr,"ignore")';
22-
+ so.rmempty = false;
1+
--- a/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dns.js
2+
+++ b/package/feeds/luci/luci-mod-network/htdocs/luci-static/resources/view/network/dns.js
3+
@@ -253,6 +253,11 @@ return view.extend({
4+
o.optional = true;
5+
o.placeholder = '/example.org/ipset,ipset6';
6+
7+
+ o = s.taboption('general', form.Flag, 'dns_redirect',
8+
+ _('DNS Redirect'),
9+
+ _('Force redirect all local DNS queries to DNSMasq, a.k.a. DNS Hijacking.'));
10+
+ o.optional = true;
2311
+
12+
o = s.taboption('general', form.Flag, 'allservers',
13+
_('All servers'),
14+
_('Query all available upstream resolvers.') + ' ' + _('First answer wins.'));
15+
@@ -442,6 +447,9 @@ return view.extend({
16+
so.rmempty = false;
17+
so.datatype = 'ipaddr("nomask")';
18+
2419
+ so = ss.option(form.Value, 'comments', _('Comments'));
2520
+ so.rmempty = true;
26-
27-
s.taboption('filteropts', form.Flag, 'domainneeded',
28-
_('Domain required'),
29-
@@ -347,6 +366,10 @@ return view.extend({
30-
_('Authoritative'),
31-
_('This is the only DHCP server in the local network.'));
32-
33-
+ s.taboption('general', form.Flag, 'dns_redirect',
34-
+ _('DNS redirect'),
35-
+ _('Force redirect all local DNS queries to DNSMasq, a.k.a. DNS Hijacking.'));
3621
+
37-
o = s.taboption('general', form.Value, 'local',
38-
_('Resolve these locally'),
39-
_('Never forward these matching domains or subdomains; resolve from DHCP or hosts files only.'));
22+
var ipaddrs = {};
23+
24+
Object.keys(hosts).forEach(function(mac) {

0 commit comments

Comments
 (0)