#!/bin/bash

echo "Rendering image"

if [ -z "$ROTATE" ]; then
    ROTATE=0
fi

convert images/image.png -rotate $ROTATE images/rotated.png
fbi -d /dev/fb1 -T 1 -noverbose -a images/rotated.png

while true; do
    sleep 1
done

#!/bin/bash

IMAGE=${IMAGE:-"image.png"}

echo "Rendering image"

ROTATE=${ROTATE:-0}

convert images/"$IMAGE" -rotate $ROTATE images/rotated.png
fbi -d /dev/fb1 -T 1 -noverbose -a images/rotated.png

while true; do
    sleep 1
done

Allow setting of image as Resin environment variable
Allow setting of image as Resin environment variable

* Parameterize image filename

* Allow setting of image as Resin environment variable (thanks Page-!)

* Use cleaner defaulting for ROTATE variable
