虚拟机安装openwrt lede报错处理方法
koolshare lede v2.30
EXSi安装了lede路由器,今天发现大量报错,仔细一看,原因是找不到温度传感器。因为虚拟机无法获取cpu的温度,导致一直报错。
Fri Sep 6 13:15:28 2019 daemon.err uhttpd[3550]: Make sure you loaded all the kernel drivers you need.
Fri Sep 6 13:15:28 2019 daemon.err uhttpd[3550]: Try sensors-detect to find out which these are.
Fri Sep 6 13:15:33 2019 daemon.err uhttpd[3550]: No sensors found!
Fri Sep 6 13:15:33 2019 daemon.err uhttpd[3550]: Make sure you loaded all the kernel drivers you need.
Fri Sep 6 13:15:33 2019 daemon.err uhttpd[3550]: Try sensors-detect to find out which these are.
Fri Sep 6 13:15:38 2019 daemon.err uhttpd[3550]: No sensors found!
Fri Sep 6 13:15:38 2019 daemon.err uhttpd[3550]: Make sure you loaded all the kernel drivers you need.
Fri Sep 6 13:15:38 2019 daemon.err uhttpd[3550]: Try sensors-detect to find out which these are.
Fri Sep 6 13:15:43 2019 daemon.err uhttpd[3550]: No sensors found!
把这个错误屏蔽即可,方法如下:
vi /usr/lib/lua/luci/view/admin_status/index.htm
找到cpuinfo = luci.sys.exec("cpuinfo")
更改为
cpuinfo = luci.sys.exec("cpuinfo 2>/dev/null")
保存即可。