#!/bin/sh


sleep 15s


###################### Configure logging and start SMH #####################
# Write text to terminal with timestamp.
log() {
  date +"%d/%m/%Y %H:%M:%S $*"
}


Command=/home/pi/SMH/scripts/Start_Watchdog.sh
Command2=/home/pi/SMH/SMHDesktop


log "Starting SMH"
cd /home/pi/SMH
$Command && fg & $Command2