diff --git a/package/kernel/shortcut-fe/Makefile b/package/kernel/shortcut-fe/Makefile index 2849e58f6d..5dcb2ac1d1 100644 --- a/package/kernel/shortcut-fe/Makefile +++ b/package/kernel/shortcut-fe/Makefile @@ -117,5 +117,5 @@ endef $(eval $(call KernelPackage,shortcut-fe)) $(eval $(call KernelPackage,shortcut-fe-cm)) $(eval $(call KernelPackage,fast-classifier)) -$(eval $(call BuildPackage,fast-classifier-example)) +#$(eval $(call BuildPackage,fast-classifier-example)) diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile new file mode 100644 index 0000000000..b280c7b247 --- /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:=2 + + +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..a9e7eea7a1 --- /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 ff > $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 ff > $fileRps + done +} + + + diff --git a/package/lean/automount/Makefile b/package/lean/automount/Makefile index 6a20b3209d..cf65b0c2e9 100644 --- a/package/lean/automount/Makefile +++ b/package/lean/automount/Makefile @@ -15,8 +15,6 @@ 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 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