Add files via upload
This commit is contained in:
@@ -12,21 +12,37 @@ index 5a3ea113..1f52537b 100644
|
||||
|
||||
define Package/autocore/description
|
||||
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
|
||||
+++ b/package/lean/autocore/files/autocore
|
||||
@@ -31,6 +31,7 @@ start()
|
||||
e=$(cat /proc/cpuinfo | grep 'processor' | wc -l)
|
||||
f=$(echo -n ' Thread ')
|
||||
@@ -33,7 +33,7 @@ start()
|
||||
g=${a}${b}${c}${d}${e}${f}
|
||||
+ g='FriendlyElec NanoPi R2S'${b}${e}${d}
|
||||
|
||||
mkdir -p /tmp/sysinfo
|
||||
echo $g > /tmp/sysinfo/model
|
||||
@@ -50,5 +51,5 @@ start()
|
||||
ethtool -K $c ufo on >/dev/null 2>&1
|
||||
done
|
||||
- echo $g > /tmp/sysinfo/model
|
||||
+ #echo $g > /tmp/sysinfo/model
|
||||
|
||||
- [ -f /etc/index.htm ] && mv /etc/index.htm /usr/lib/lua/luci/view/admin_status/index.htm
|
||||
+ #[ -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 "\.")
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user