configure default values in ~/pistressrc if exists
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
export FIO_NUMJOBS=$(nproc)
|
||||
if [ -f ~/.pistressrc ]; then
|
||||
. ~/.pistressrc
|
||||
else
|
||||
export PISTRESS_HOME=/home/pi/git/pistress
|
||||
|
||||
export FIO_NUMJOBS=$(nproc)
|
||||
export FIO_RUNNING_TIME=3600
|
||||
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
|
||||
fi
|
||||
|
||||
measure_temp.sh > ${1} &
|
||||
TPID=$!
|
||||
fio ${PISTRESS_HOME}/fio/fio_cpu
|
||||
|
||||
Reference in New Issue
Block a user