#!/usr/bin/env sh DEBUG=${DEBUG:-false} [ "$DEBUG" = true ] && set -x DIR="$(dirname "$0")" DASH_PNG="$DIR/dash.png" /etc/init.d/framework stop initctl stop webreader >/dev/null 2>&1 echo powersave >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor lipc-set-prop com.lab126.powerd preventScreenSaver 1 i=0 while true; do curl -H "Host: insecure.orbekk.com" http://172.20.20.2/tmp/dashboard.png -o $DASH_PNG if [ $i -eq 10 ]; then i=0 /usr/sbin/eips -f -g "$DASH_PNG" else i=$((i + 1)) /usr/sbin/eips -g "$DASH_PNG" fi sleep 30 done