优化 Patches

This commit is contained in:
Hyy2001X 2022-01-14 20:31:43 +08:00
parent 00eeb80e10
commit d188d8c1cf
3 changed files with 23 additions and 25 deletions

View File

@ -1,6 +1,5 @@
diff -uprN antfs-mount/Makefile antfs-mount1/Makefile
--- antfs-mount/Makefile
+++ antfs-mount1/Makefile
--- a/feeds/packages/utils/antfs-mount/Makefile
+++ b/feeds/packages/utils/antfs-mount/Makefile
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
@ -12,23 +11,23 @@ diff -uprN antfs-mount/Makefile antfs-mount1/Makefile
@@ -22,7 +22,7 @@ endef
define Package/antfs-mount/install
define Package/a/feeds/packages/utils/install
$(INSTALL_DIR) $(1)/sbin
- $(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin
+ $(INSTALL_BIN) ./files/mount.antfs $(1)/sbin
endef
$(eval $(call BuildPackage,antfs-mount))
diff -uprN antfs-mount/files/mount.antfs antfs-mount1/files/mount.antfs
--- antfs-mount/files/mount.antfs
+++ antfs-mount1/files/mount.antfs
--- a/feeds/packages/utils/antfs-mount/files/mount.antfs
+++ b/feeds/packages/utils/antfs-mount/files/mount.antfs
@@ -0,0 +1,3 @@
+#!/bin/sh
+mount -t antfs "$@" -o rw,noatime,async,nodiratime,relatime
+mount -t antfs $@ -o rw
+
diff -uprN antfs-mount/files/mount.ntfs antfs-mount1/files/mount.ntfs
--- antfs-mount/files/mount.ntfs
+++ antfs-mount1/files/mount.ntfs
--- a/feeds/packages/utils/antfs-mount/files/mount.ntfs
+++ b/feeds/packages/utils/antfs-mount/files/mount.ntfs
@@ -1,2 +0,0 @@
-#!/bin/sh
-mount -t antfs "$@"

View File

@ -1,6 +1,5 @@
diff -uprN helloworld/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua helloworld1/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua
--- helloworld/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua 2022-01-05 17:40:24.000000000 +0800
+++ helloworld1/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua 2022-01-05 17:41:24.000000000 +0800
--- a/package/other/helloworld/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua
+++ b/package/other/helloworld/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua
@@ -302,6 +302,13 @@ o:depends("type", "ssr")
o = s:option(Value, "obfs_param", translate("Obfs param(optional)"))
o:depends("type", "ssr")
@ -15,9 +14,9 @@ diff -uprN helloworld/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-con
-- VmessId
o = s:option(Value, "vmess_id", translate("Vmess/VLESS ID (UUID)"))
o.rmempty = true
diff -uprN helloworld/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm helloworld1/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
--- helloworld/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm 2022-01-05 17:40:24.000000000 +0800
+++ helloworld1/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm 2022-01-05 17:41:45.000000000 +0800
--- a/package/other/helloworld/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
+++ b/package/other/helloworld/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm
@@ -242,6 +242,7 @@ function import_ssr_url(btn, urlname, si
document.getElementsByName('cbid.shadowsocksr.' + sid + '.alias')[0].value = ssm.ps;
document.getElementsByName('cbid.shadowsocksr.' + sid + '.server')[0].value = ssm.add;
@ -26,9 +25,9 @@ diff -uprN helloworld/luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm hell
document.getElementsByName('cbid.shadowsocksr.' + sid + '.vmess_id')[0].value = ssm.id;
document.getElementsByName('cbid.shadowsocksr.' + sid + '.transport')[0].value = ssm.net;
document.getElementsByName('cbid.shadowsocksr.' + sid + '.transport')[0].dispatchEvent(event);
diff -uprN helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua helloworld1/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
--- helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua 2022-01-05 17:40:24.000000000 +0800
+++ helloworld1/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua 2022-01-05 17:42:14.000000000 +0800
--- a/package/other/helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
+++ b/package/other/helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
@@ -15,6 +15,7 @@ function vmess_vless()
users = {
{
@ -37,9 +36,9 @@ diff -uprN helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.l
security = (server.v2ray_protocol == "vmess" or not server.v2ray_protocol) and server.security or nil,
encryption = (server.v2ray_protocol == "vless") and server.vless_encryption or nil,
flow = (server.xtls == '1') and (server.vless_flow and server.vless_flow or "xtls-rprx-splice") or nil
diff -uprN helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua helloworld1/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua
--- helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua 2022-01-05 17:40:24.000000000 +0800
+++ helloworld1/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua 2022-01-05 17:42:29.000000000 +0800
--- a/package/other/helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua
+++ b/package/other/helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua
@@ -163,6 +163,7 @@ local function processData(szType, conte
result.server = info.add
result.server_port = info.port

View File

@ -54,8 +54,8 @@ Firmware_Diy() {
# AddPackage git other OpenAppFilter destan19 master
# AddPackage svn other luci-app-ddnsto linkease/nas-packages/trunk/luci
# AddPackage svn other ddnsto linkease/nas-packages/trunk/network/services
patch < ${CustomFiles}/Patches/revert_remove-alterId-config.patch -p0 -d ${Home}/package/other
patch < ${CustomFiles}/Patches/fix_ntfs3_antfs_conflict.patch -p0 -d ${Home}/feeds/packages/utils
patch < ${CustomFiles}/Patches/revert_remove-alterId-config.patch -p1 -d ${Home}
patch < ${CustomFiles}/Patches/fix_ntfs3_antfs_conflict.patch -p1 -d ${Home}
case "${TARGET_PROFILE}" in
d-team_newifi-d2)