lede/target/linux/ar71xx/base-files/etc/init.d/ar71xx_clock
2018-06-10 16:28:56 +08:00

16 lines
246 B
Bash
Executable File

#!/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
}