File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 8
8
include $(TOPDIR ) /rules.mk
9
9
10
10
PKG_NAME: =autocore
11
- PKG_VERSION: =1
12
- PKG_RELEASE: =43
11
+ PKG_RELEASE: =$(COMMITCOUNT )
13
12
14
13
include $(INCLUDE_DIR ) /package.mk
15
14
16
15
define Package/autocore-arm
17
16
TITLE:=Arm auto core loadbalance script.
18
17
MAINTAINER:=CN_SZTL
19
- DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_ipq807x||TARGET_mvebu||TARGET_rockchip) \
20
- +TARGET_bcm27xx:bcm27xx-userland +TARGET_bcm53xx:nvram +ethtool
18
+ DEPENDS:=@(arm||aarch64) \
19
+ +TARGET_bcm27xx:bcm27xx-userland \
20
+ +TARGET_bcm53xx:nvram +ethtool
21
21
VARIANT:=arm
22
22
endef
23
23
@@ -43,7 +43,7 @@ define Package/autocore-arm/install
43
43
$(INSTALL_DIR ) $(1 ) /etc
44
44
$(INSTALL_DATA ) ./files/arm/index.htm $(1 ) /etc/index.htm
45
45
$(INSTALL_DIR ) $(1 ) /etc/uci-defaults
46
- $(INSTALL_BIN ) ./files/arm/090-cover-index_htm $(1 ) /etc/uci-defaults/090-cover-index_htm
46
+ $(INSTALL_BIN ) ./files/arm/090-cover-index_htm $(1 ) /etc/uci-defaults/
47
47
$(INSTALL_DIR ) $(1 ) /sbin
48
48
$(INSTALL_BIN ) ./files/arm/sbin/cpuinfo $(1 ) /sbin/cpuinfo
49
49
$(INSTALL_BIN ) ./files/arm/sbin/ethinfo $(1 ) /sbin/ethinfo
Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ elif grep -q "bcm53xx" "/etc/openwrt_release"; then
10
10
cpu_freq=" $( nvram get clkfreq | awk -F ' ,' ' {print $1}' ) MHz"
11
11
elif grep -q " mvebu" " /etc/openwrt_release" ; then
12
12
cpu_freq=" $( cat " /proc/cpuinfo" | grep " BogoMIPS" | sed -n " 1p" | awk -F ' : ' ' {print $2}' ) MHz"
13
- else
13
+ elif ! grep -q " filogic " " /etc/openwrt_release " ; then
14
14
cpu_freq=" $( expr $( cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq) / 1000) MHz"
15
15
big_cpu_freq=" $( expr $( cat /sys/devices/system/cpu/cpufreq/policy4/cpuinfo_cur_freq 2> " /dev/null" ) / 1000 2> " /dev/null" ) "
16
16
[ -n " ${big_cpu_freq} " ] && big_cpu_freq=" ${big_cpu_freq} MHz "
17
17
fi
18
18
19
- if grep -q " ipq" " /etc/openwrt_release" ; then
19
+ if grep -q " filogic" " /etc/openwrt_release" ; then
20
+ echo -n " ${cpu_arch} x ${cpu_cores} "
21
+ elif grep -q " ipq" " /etc/openwrt_release" ; then
20
22
if grep -q " ipq40xx" " /etc/openwrt_release" ; then
21
23
sys_temp=" $( awk ' { printf("%.1f°C ", $0 / 1000) }' /sys/class/ieee80211/phy* /device/hwmon/hwmon* /temp1_input) "
22
24
else
You can’t perform that action at this time.
0 commit comments