# Syslogd folder.
syslogdir="/mmc/var/log/"
crondir="/mmc/var/cron/"

# Create the syslog dir if it's not already there.
if [ ! -d $syslogdir ]; then
	echo "$syslogdir doesn't exist, creating it..."
	mkdir -p $syslogdir
fi

# Create the cron dir if it's not already there.
if [ ! -d $crondir ]; then
	echo "$crondir doesn't exist, creating it..."
	mkdir -p $crondir
fi

# May have to set the default gateway.
if [ -f /mmc/dgw.sh ]; then
	/bin/sh /mmc/dgw.sh
fi

# Check that the FPGA is programmed.
/bin/sh /mmc/check_fpga.sh

/mmc/syslog.sh &
sleep 1
#/bin/cron 
/mmc/http.sh &
sleep 5
/mmc/msg.sh start
