mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 14:13:30 +00:00
display ar71xx cpu clock Mhz in luci homepage
This commit is contained in:
parent
f04b1e7824
commit
fb3d32fdf1
15
target/linux/ar71xx/base-files/etc/init.d/ar71xx_clock
Executable file
15
target/linux/ar71xx/base-files/etc/init.d/ar71xx_clock
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user