#!/bin/sh HIGHLOAD=80 load=$(cat /proc/loadavg | cut -d " " -f1 | tr -d ".") if [ "$load" -gt "$HIGHLOAD" ] then /tmp/./gpio enable 2 /tmp/./gpio disable 3 else /tmp/./gpio enable 3 /tmp/./gpio disable 2 fi