immortalwrt/package/lean/coremark/coremark.sh

12 lines
317 B
Bash
Raw Normal View History

#!/bin/sh
/bin/coremark > /tmp/coremark.log
2019-04-18 19:37:45 +08:00
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
2019-04-18 19:37:45 +08:00
if [ -f "/etc/bench.log" ]; then
sed -i '/coremark/d' /etc/crontabs/root
crontab /etc/crontabs/root
fi