#!/bin/sh

# check update crimson fields
if [ -f "/mnt/hd/user/crimson-v43.tar.gz" ]; then
	if [ -d "/mnt/hd/user/crimson" ]; then
 		echo "removing previous installation of crimson fields"
		rm -rf /mnt/hd/user/crimson/*
	fi
 	echo "installing version of crimson fields for iStation V43"
 	cd /mnt/hd/user
	tar xzvf crimson-v43.tar.gz
	rm -f crimson-v43.tar.gz
fi

export HOME=/mnt/hd/user/crimson
/mnt/hd/user/crimson/crimson --width 480 --height 272 --sound 1 > /mnt/hd/user/crimson/crimson.log
exit 65
