Add files via upload
This commit is contained in:
@@ -12,21 +12,37 @@ index 5a3ea113..1f52537b 100644
|
|||||||
|
|
||||||
define Package/autocore/description
|
define Package/autocore/description
|
||||||
diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore
|
diff --git a/package/lean/autocore/files/autocore b/package/lean/autocore/files/autocore
|
||||||
index 55cd519f..92873a1c 100755
|
index 55cd519f..5aabbb63 100755
|
||||||
--- a/package/lean/autocore/files/autocore
|
--- a/package/lean/autocore/files/autocore
|
||||||
+++ b/package/lean/autocore/files/autocore
|
+++ b/package/lean/autocore/files/autocore
|
||||||
@@ -31,6 +31,7 @@ start()
|
@@ -33,7 +33,7 @@ start()
|
||||||
e=$(cat /proc/cpuinfo | grep 'processor' | wc -l)
|
|
||||||
f=$(echo -n ' Thread ')
|
|
||||||
g=${a}${b}${c}${d}${e}${f}
|
g=${a}${b}${c}${d}${e}${f}
|
||||||
+ g='FriendlyElec NanoPi R2S'${b}${e}${d}
|
|
||||||
|
|
||||||
mkdir -p /tmp/sysinfo
|
mkdir -p /tmp/sysinfo
|
||||||
echo $g > /tmp/sysinfo/model
|
- echo $g > /tmp/sysinfo/model
|
||||||
@@ -50,5 +51,5 @@ start()
|
+ #echo $g > /tmp/sysinfo/model
|
||||||
ethtool -K $c ufo on >/dev/null 2>&1
|
|
||||||
done
|
|
||||||
|
|
||||||
- [ -f /etc/index.htm ] && mv /etc/index.htm /usr/lib/lua/luci/view/admin_status/index.htm
|
a=$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -v "@" | grep -v "\.")
|
||||||
+ #[ -f /etc/index.htm ] && mv /etc/index.htm /usr/lib/lua/luci/view/admin_status/index.htm
|
b=$(echo "$a" | wc -l)
|
||||||
|
diff --git a/package/lean/autocore/files/sbin/cpuinfo b/package/lean/autocore/files/sbin/cpuinfo
|
||||||
|
index 19ea5fb2..3ca62011 100755
|
||||||
|
--- a/package/lean/autocore/files/sbin/cpuinfo
|
||||||
|
+++ b/package/lean/autocore/files/sbin/cpuinfo
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
|
||||||
|
info()
|
||||||
|
{
|
||||||
|
- MHz=`grep 'MHz' /proc/cpuinfo | cut -c11- |sed -n '1p'`
|
||||||
|
+ MHz=`cat /sys/devices/system/cpu/cpu[04]/cpufreq/cpuinfo_cur_freq`
|
||||||
|
#获取CPU工作频率
|
||||||
|
|
||||||
|
sensors >/dev/null
|
||||||
|
@@ -12,7 +12,7 @@ info()
|
||||||
|
#获取CPU核心1温度
|
||||||
|
|
||||||
|
else
|
||||||
|
- a=""
|
||||||
|
+ a=`echo "scale=2; $(cat /sys/class/thermal/thermal_zone0/temp) / 1000" | bc`°
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
25
fix_cpufreq.diff
Normal file
25
fix_cpufreq.diff
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/package/lean/luci-app-cpufreq/root/etc/config/cpufreq b/package/lean/luci-app-cpufreq/root/etc/config/cpufreq
|
||||||
|
index 0443dc77..214d7cb8 100644
|
||||||
|
--- a/package/lean/luci-app-cpufreq/root/etc/config/cpufreq
|
||||||
|
+++ b/package/lean/luci-app-cpufreq/root/etc/config/cpufreq
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
config settings 'cpufreq'
|
||||||
|
- option maxfreq '716000'
|
||||||
|
+ option maxfreq '0'
|
||||||
|
option upthreshold '50'
|
||||||
|
option factor '10'
|
||||||
|
option minifreq '300000'
|
||||||
|
diff --git a/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq b/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
|
||||||
|
index df42f3c7..c81e237d 100755
|
||||||
|
--- a/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
|
||||||
|
+++ b/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
|
||||||
|
@@ -13,7 +13,7 @@ start()
|
||||||
|
config_load cpufreq
|
||||||
|
local governor=$(uci_get_by_type settings governor ondemand)
|
||||||
|
local minifreq=$(uci_get_by_type settings minifreq 48000)
|
||||||
|
- local maxfreq=$(uci_get_by_type settings maxfreq 716000)
|
||||||
|
+ local maxfreq=$(uci_get_by_type settings maxfreq 0)
|
||||||
|
local upthreshold=$(uci_get_by_type settings upthreshold 50)
|
||||||
|
local factor=$(uci_get_by_type settings factor 10)
|
||||||
|
|
||||||
Reference in New Issue
Block a user