#!/bin/bash
. /etc/profile
if  [ -f  /home/mythtv/.mythtv/MythSmolt/hw-uuid ] 
then
	cd /usr/share/mythtv/mythsmolt/scripts
	touch /var/log/smolt.update
	chown mythtv /var/log/smolt.update
	random=$((RANDOM%2000))
	sleep $random
	su mythtv -c "./sendProfile.py -a" > /var/log/smolt.update
fi