diff --git a/config/Config-images.in b/config/Config-images.in index 2afaf1c0c..e384e0cd5 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -229,7 +229,7 @@ menu "Target Images" config GRUB_TIMEOUT string "Seconds to wait before booting the default entry" depends on GRUB_IMAGES || GRUB_EFI_IMAGES - default "5" + default "0" help If you don't know, 5 seconds is a reasonable default. diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index 36023155c..f0c5c2787 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=autocore PKG_VERSION:=1 -PKG_RELEASE:=31 +PKG_RELEASE:=33 include $(INCLUDE_DIR)/package.mk diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore index 55cd519f5..614e21761 100755 --- a/package/lean/autocore/files/autocore +++ b/package/lean/autocore/files/autocore @@ -8,22 +8,20 @@ start() rfc=4096 cc=$(grep -c processor /proc/cpuinfo) rsfe=$(echo $cc*$rfc | bc) - sysctl -w net.core.rps_sock_flow_entries=$rsfe + sysctl -w net.core.rps_sock_flow_entries=$rsfe >/dev/null 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 - + + uci set network.@globals[0].packet_steering=1 + uci commit network + a=$(cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq) b=$(echo -n ' : ') c=$(cat /proc/cpuinfo | grep 'core id' | sort -u | wc -l) diff --git a/package/lean/autocore/files/sbin/cpuinfo b/package/lean/autocore/files/sbin/cpuinfo index 19ea5fb29..05f0053d1 100755 --- a/package/lean/autocore/files/sbin/cpuinfo +++ b/package/lean/autocore/files/sbin/cpuinfo @@ -5,7 +5,7 @@ info() MHz=`grep 'MHz' /proc/cpuinfo | cut -c11- |sed -n '1p'` #获取CPU工作频率 - sensors >/dev/null + sensors 2>/dev/null if [ $? -eq 0 ];then a=`sensors | grep 'Core 0' | cut -c10-24`