revert: display ar71xx cpu clock Mhz in luci

This commit is contained in:
coolsnowwolf 2018-06-13 14:32:30 +08:00
parent 216adcd0ce
commit 92dc4ae2f0

View File

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2017 lean <coolsnowwolf@gmail.com>
START=99
start()
{
a=$(cat /tmp/sysinfo/model)
b=$(dmesg | awk -F 'CPU:|MHz' '/Clocks:/{print $2+0}')
c=${a}" CPU:"${b}Mhz
echo -n $c > /tmp/sysinfo/model
}