mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 19:12:33 +08:00
13 lines
319 B
Bash
Executable File
13 lines
319 B
Bash
Executable File
#!/bin/sh
|
|
|
|
/bin/coremark > /tmp/coremark.log
|
|
|
|
cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d "/" -f 1 > /etc/bench.log
|
|
sed -i 's/CoreMark 1.0/ (CpuMark/g' /etc/bench.log
|
|
echo " Scores)" >> /etc/bench.log
|
|
|
|
if [ -f "/etc/bench.log" ]; then
|
|
sed -i '/coremark/d' /etc/crontabs/root
|
|
crontab /etc/crontabs/root
|
|
fi
|