#!/bin/bash
SCRIPTDIR="$( cd "$(dirname $0)" && pwd )"

echo "getting hotfix"
wget -O /tmp/checkUpdatesSmartha.hgs https://smartha.io/downloads/checkUpdatesSmartha.hgs
echo "checking for updates"
homegear -e rs ../../../../tmp/checkUpdatesSmartha.hgs
echo "checking done."
cd $SCRIPTDIR
rm -f checkUpdatesSmartha.hgs
rm -f installHotfix.sh
