mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-08 11:17:36 +08:00
12 lines
317 B
Bash
Executable File
12 lines
317 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 |