immortalwrt/package/lean/coremark/coremark.sh

13 lines
319 B
Bash
Raw Normal View History

2019-11-08 22:57:22 +08:00
#!/bin/sh
/bin/coremark > /tmp/coremark.log
cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d "/" -f 1 > /etc/bench.log
2020-03-21 22:30:02 +08:00
sed -i 's/CoreMark 1.0/ (CpuMark/g' /etc/bench.log
2019-11-08 22:57:22 +08:00
echo " Scores)" >> /etc/bench.log
if [ -f "/etc/bench.log" ]; then
sed -i '/coremark/d' /etc/crontabs/root
crontab /etc/crontabs/root
2020-03-21 22:30:02 +08:00
fi