diff options
Diffstat (limited to 'dashboard.sh')
-rw-r--r-- | dashboard.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dashboard.sh b/dashboard.sh new file mode 100644 index 0000000..0d37ef0 --- /dev/null +++ b/dashboard.sh @@ -0,0 +1,24 @@ +#!/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 |