mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 03:43:29 +00:00
revert: display ar71xx cpu clock Mhz in luci
This commit is contained in:
parent
216adcd0ce
commit
92dc4ae2f0
12
target/linux/ar71xx/base-files/etc/init.d/ar71xx_clock
Executable file
12
target/linux/ar71xx/base-files/etc/init.d/ar71xx_clock
Executable 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user