#!/bin/sh stress-ng --help > /dev/null 2>&1 if [ $? -ne 0 ];then sudo apt-get update sudo apt-get -y install stress-ng fi # To run ${cpu_no} workers might cause hikey board # overheat and result in system shutdown cpu_no=`grep "^processor" /proc/cpuinfo | wc -l` worker_no=$((${cpu_no}/2)) stress-ng --random ${worker_no} --timeout 6h