mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2023-07-06 16:26:01
This commit is contained in:
parent
3aebb64b23
commit
683a597b3b
@ -10,11 +10,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_ARCH_LINKEASE:=$(ARCH)
|
PKG_ARCH_LINKEASE:=$(ARCH)
|
||||||
|
|
||||||
PKG_NAME:=linkease
|
PKG_NAME:=linkease
|
||||||
PKG_VERSION:=1.1.9
|
PKG_VERSION:=1.2.0
|
||||||
PKG_RELEASE:=$(PKG_ARCH_LINKEASE)-2
|
PKG_RELEASE:=$(PKG_ARCH_LINKEASE)-2
|
||||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://fw0.koolcenter.com/binary/LinkEase/LinuxStorage/
|
PKG_SOURCE_URL:=http://fw0.koolcenter.com/binary/LinkEase/LinuxStorage/
|
||||||
PKG_HASH:=0ec441f434357b049ae1d9a71caa1e553ad72f592e3010aeff7b997f1a991e79
|
PKG_HASH:=7087773553bfcfe92a3a12d89449eb4ccf60fd7f0e241fa5819f7190f3fe0d8e
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ endef
|
|||||||
|
|
||||||
define Package/$(PKG_NAME)/postinst
|
define Package/$(PKG_NAME)/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
[ ! -f /etc/openwrt_release ] && exit 0
|
||||||
[ -n "${IPKG_INSTROOT}" ] || {
|
[ -n "${IPKG_INSTROOT}" ] || {
|
||||||
sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf
|
sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
[ ! -f /etc/openwrt_release ] && exit 0
|
||||||
|
|
||||||
START=99
|
START=99
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
|
@ -189,12 +189,6 @@ msgstr "网关模式"
|
|||||||
msgid "Bypass Mode"
|
msgid "Bypass Mode"
|
||||||
msgstr "旁路模式"
|
msgstr "旁路模式"
|
||||||
|
|
||||||
msgid "Bypass Mode"
|
|
||||||
msgstr "旁路模式"
|
|
||||||
|
|
||||||
msgid "Current version"
|
|
||||||
msgstr "当前版本"
|
|
||||||
|
|
||||||
msgid "Current version"
|
msgid "Current version"
|
||||||
msgstr "当前版本"
|
msgstr "当前版本"
|
||||||
|
|
||||||
|
@ -1156,25 +1156,31 @@ int af_send_msg_to_user(char *pbuf, uint16_t len)
|
|||||||
struct sk_buff *nl_skb;
|
struct sk_buff *nl_skb;
|
||||||
struct nlmsghdr *nlh;
|
struct nlmsghdr *nlh;
|
||||||
int buf_len = OAF_EXTRA_MSG_BUF_LEN + len;
|
int buf_len = OAF_EXTRA_MSG_BUF_LEN + len;
|
||||||
char *msg_buf = kmalloc(buf_len, GFP_KERNEL);
|
char *msg_buf = NULL;
|
||||||
struct af_msg_hdr *hdr = NULL;
|
struct af_msg_hdr *hdr = NULL;
|
||||||
char *p_data = NULL;
|
char *p_data = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
if (len >= MAX_OAF_NL_MSG_LEN)
|
if (len >= MAX_OAF_NL_MSG_LEN)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
memset(msg_buf, 0x0, sizeof(buf_len));
|
msg_buf = kmalloc(buf_len, GFP_KERNEL);
|
||||||
|
if (!msg_buf)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
memset(msg_buf, 0x0, buf_len);
|
||||||
nl_skb = nlmsg_new(len + sizeof(struct af_msg_hdr), GFP_ATOMIC);
|
nl_skb = nlmsg_new(len + sizeof(struct af_msg_hdr), GFP_ATOMIC);
|
||||||
if (!nl_skb)
|
if (!nl_skb)
|
||||||
{
|
{
|
||||||
return -1;
|
ret = -1;
|
||||||
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
nlh = nlmsg_put(nl_skb, 0, 0, OAF_NETLINK_ID, len + sizeof(struct af_msg_hdr), 0);
|
nlh = nlmsg_put(nl_skb, 0, 0, OAF_NETLINK_ID, len + sizeof(struct af_msg_hdr), 0);
|
||||||
if (nlh == NULL)
|
if (nlh == NULL)
|
||||||
{
|
{
|
||||||
nlmsg_free(nl_skb);
|
nlmsg_free(nl_skb);
|
||||||
return -1;
|
ret = -1;
|
||||||
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
hdr = (struct af_msg_hdr *)msg_buf;
|
hdr = (struct af_msg_hdr *)msg_buf;
|
||||||
@ -1184,6 +1190,8 @@ int af_send_msg_to_user(char *pbuf, uint16_t len)
|
|||||||
memcpy(p_data, pbuf, len);
|
memcpy(p_data, pbuf, len);
|
||||||
memcpy(nlmsg_data(nlh), msg_buf, len + sizeof(struct af_msg_hdr));
|
memcpy(nlmsg_data(nlh), msg_buf, len + sizeof(struct af_msg_hdr));
|
||||||
ret = netlink_unicast(oaf_sock, nl_skb, 999, MSG_DONTWAIT);
|
ret = netlink_unicast(oaf_sock, nl_skb, 999, MSG_DONTWAIT);
|
||||||
|
|
||||||
|
fail:
|
||||||
kfree(msg_buf);
|
kfree(msg_buf);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -12,13 +12,13 @@ PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
GEOIP_VER:=202306301512
|
GEOIP_VER:=202307060057
|
||||||
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
|
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
|
||||||
define Download/geoip
|
define Download/geoip
|
||||||
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
|
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
|
||||||
URL_FILE:=geoip.dat
|
URL_FILE:=geoip.dat
|
||||||
FILE:=$(GEOIP_FILE)
|
FILE:=$(GEOIP_FILE)
|
||||||
HASH:=56f2f4c43ea40e2c0d314b45851b1db3a63a4005467f21b5fe91cf116c8cfa6a
|
HASH:=a200767fcf152a4886c8bbfc8e9b8325cb405dd8076f911a7d49edb3ddf20024
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_VER:=20230705152000
|
GEOSITE_VER:=20230705152000
|
||||||
|
Loading…
Reference in New Issue
Block a user