diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile new file mode 100644 index 0000000000..d10232be9f --- /dev/null +++ b/package/lean/autocore/Makefile @@ -0,0 +1,35 @@ +# +# Copyright (C) 2010-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=autocore +PKG_VERSION:=1 +PKG_RELEASE:=3 + + +include $(INCLUDE_DIR)/package.mk + +define Package/autocore + TITLE:=x86/x64 auto core loadbalance script. + MAINTAINER:=Lean + DEPENDS:=@TARGET_x86 +bc +endef + +define Package/autocore/description +A usb autoconfig hotplug script. +endef + +define Build/Compile +endef + +define Package/autocore/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/autocore $(1)/etc/init.d/autocore +endef + +$(eval $(call BuildPackage,autocore)) diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore new file mode 100755 index 0000000000..216b362294 --- /dev/null +++ b/package/lean/autocore/files/autocore @@ -0,0 +1,29 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2017 lean + +START=99 + +start() +{ + rfc=4096 + cc=$(grep -c processor /proc/cpuinfo) + rsfe=$(echo $cc*$rfc | bc) + sysctl -w net.core.rps_sock_flow_entries=$rsfe + for fileRps in $(ls /sys/class/net/eth*/queues/rx-*/rps_cpus) + do + echo $cc > $fileRps + done + + for fileRfc in $(ls /sys/class/net/eth*/queues/rx-*/rps_flow_cnt) + do + echo $rfc > $fileRfc + done + + for fileRps in $(ls /sys/class/net/eth*/queues/tx-*/xps_cpus) + do + echo $cc > $fileRps + done +} + + + diff --git a/package/lean/automount/Makefile b/package/lean/automount/Makefile index 627f21326e..3d56204199 100644 --- a/package/lean/automount/Makefile +++ b/package/lean/automount/Makefile @@ -9,14 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=automount PKG_VERSION:=1 -PKG_RELEASE:=14 +PKG_RELEASE:=18 PKG_ARCH:=all include $(INCLUDE_DIR)/package.mk define Package/automount - SECTION:=net - CATEGORY:=Network TITLE:=Mount autoconfig hotplug script. MAINTAINER:=Lean DEPENDS:=block-mount +kmod-usb-storage +kmod-usb-storage-extras +kmod-fs-ext4 +kmod-fs-vfat +kmod-fs-exfat +ntfs-3g @@ -30,8 +28,9 @@ define Build/Compile endef define Package/automount/install - $(INSTALL_DIR) $(1)/etc/hotplug.d/block - $(INSTALL_BIN) ./files/15-automount $(1)/etc/hotplug.d/block/15-automount + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_BIN) ./files/15-automount $(1)/etc/15-automount + $(INSTALL_BIN) ./files/zzz-move-automount $(1)/etc/uci-defaults/zzz-move-automount endef $(eval $(call BuildPackage,automount)) diff --git a/package/lean/automount/files/15-automount b/package/lean/automount/files/15-automount index a68ccb2c07..1948d75a0b 100755 --- a/package/lean/automount/files/15-automount +++ b/package/lean/automount/files/15-automount @@ -3,9 +3,6 @@ # Copyright (C) 2015 OpenWrt.org # 0 yes blockdevice handles this - 1 no it is not there - -(ls /etc/uci-defaults £ü grep fstab > /dev/null 2>&1) && sleep 10 - blkdev=`dirname $DEVPATH` basename=`basename $blkdev` device=`basename $DEVPATH` diff --git a/package/lean/automount/files/zzz-move-automount b/package/lean/automount/files/zzz-move-automount new file mode 100755 index 0000000000..fbe094cbdd --- /dev/null +++ b/package/lean/automount/files/zzz-move-automount @@ -0,0 +1,7 @@ +#!/bin/sh + +sleep 15 +mv /etc/15-automount /etc/hotplug.d/block/ + + + diff --git a/package/lean/autosamba/Makefile b/package/lean/autosamba/Makefile index b4d87638c5..908d459d8b 100644 --- a/package/lean/autosamba/Makefile +++ b/package/lean/autosamba/Makefile @@ -15,8 +15,6 @@ PKG_ARCH:=all include $(INCLUDE_DIR)/package.mk define Package/autosamba - SECTION:=net - CATEGORY:=Network TITLE:=Samba autoconfig hotplug script. MAINTAINER:=Lean DEPENDS:=+luci-app-samba diff --git a/package/lean/luci-app-openvpn-server/Makefile b/package/lean/luci-app-openvpn-server/Makefile index f5ff92ec9a..822649610f 100644 --- a/package/lean/luci-app-openvpn-server/Makefile +++ b/package/lean/luci-app-openvpn-server/Makefile @@ -10,7 +10,7 @@ LUCI_DEPENDS:=+openvpn-openssl +openvpn-easy-rsa LUCI_PKGARCH:=all PKG_NAME:=luci-app-openvpn-server PKG_VERSION:=2.0 -PKG_RELEASE:=13 +PKG_RELEASE:=16 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-openvpn-server/root/etc/uci-defaults/openvpn b/package/lean/luci-app-openvpn-server/root/etc/uci-defaults/openvpn index 849754dfd9..5afa99995e 100755 --- a/package/lean/luci-app-openvpn-server/root/etc/uci-defaults/openvpn +++ b/package/lean/luci-app-openvpn-server/root/etc/uci-defaults/openvpn @@ -39,7 +39,8 @@ uci set firewall.@forwarding[-1].dest="lan" uci commit firewall; /etc/init.d/firewall restart -/etc/init.d/openvpn disable && /etc/init.d/openvpn stop +/etc/init.d/openvpn enable +/etc/init.d/openvpn stop rm -f /tmp/luci-indexcache exit 0 diff --git a/package/lean/luci-app-shadowsocksr-pro/Makefile b/package/lean/luci-app-shadowsocksr-pro/Makefile index 9e52e0bf14..d7d807984f 100644 --- a/package/lean/luci-app-shadowsocksr-pro/Makefile +++ b/package/lean/luci-app-shadowsocksr-pro/Makefile @@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for Shadowsocksr LUCI_DEPENDS:=+iptables-mod-tproxy +kmod-ipt-tproxy +ip +ipset-lists +shadowsocksr-libev-alt +pdnsd-alt +coreutils +coreutils-base64 +coreutils-nohup +dnsmasq-full LUCI_PKGARCH:=all PKG_VERSION:=2.0 -PKG_RELEASE:=16 +PKG_RELEASE:=17 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-shadowsocksr-pro/root/etc/init.d/ssrpro b/package/lean/luci-app-shadowsocksr-pro/root/etc/init.d/ssrpro index 8d0691a4f0..2db51a4645 100755 --- a/package/lean/luci-app-shadowsocksr-pro/root/etc/init.d/ssrpro +++ b/package/lean/luci-app-shadowsocksr-pro/root/etc/init.d/ssrpro @@ -197,10 +197,17 @@ start_pdnsd() [ -n "$safe_dns" ] && tcp_dns_list="$safe_dns,$tcp_dns_list" #killall -9 pdnsd 2>/dev/null && sleep 1 - kill -9 $(cat /var/run/pdnsd.pid) >/dev/null 2>&1 && mkdir -p /var/etc /var/pdnsd + kill -9 $(cat /var/run/pdnsd.pid) >/dev/null 2>&1 + + mkdir -p /var/etc /var/pdnsd + if ! test -f "/var/pdnsd/pdnsd.cache"; then + dd if=/dev/zero of="/var/pdnsd/pdnsd.cache" bs=1 count=4 2> /dev/null + chown -R nobody.nogroup /var/pdnsd + fi + cat > /var/etc/pdnsd.conf <