26 lines
327 B
Text
26 lines
327 B
Text
|
#!/bin/bash
|
||
|
|
||
|
if [[ -z $OUTPUT_DIR ]] ; then
|
||
|
source scan-dmidecode
|
||
|
fi
|
||
|
|
||
|
RUNNING=0
|
||
|
while [[ $RUNNING == 0 ]] ; do
|
||
|
sleep 1
|
||
|
if [[ -f /run/fio.waiting ]] ; then
|
||
|
RUNNING=1
|
||
|
fi
|
||
|
done
|
||
|
sleep 5
|
||
|
tail -Fq /run/*.fio.out &
|
||
|
|
||
|
TAIL_PID=`jobs -p %+`
|
||
|
|
||
|
while [[ -f /run/fio.waiting ]] ; do
|
||
|
sleep 1
|
||
|
done
|
||
|
|
||
|
kill $TAIL_PID
|
||
|
rm -vf /run/*.fio.out
|
||
|
|