#! /bin/sh

# Try to mount SD and USB storage devices, then set up DVR (it uses ramdisk if the others aren't available)
sleep 2                    
mount-sd
sleep 2
mount-usb
sleep 2
setup-dvr
sleep 2

# Start Applications
echo "Starting Applications..."
start-alsa-gain-controller # needs to be ready when core starts because core doesn't wait or retry sending gain commands (alternately could make core create the fifo so this can catch up when it does get ready)
start-tones
start-voice-generator
start-crosspoint
start-core
start-voip-transmitter
start-voip-receiver
start-voip-rtp
start-dvr-recorder


echo 'Not starting linux-watchdog.  See http://linkcomm.com/wiki/index.php?title=LinuxWatchdog'
# start-linux-watchdog	# do this last since it checks to see if everything is running

