#!/bin/sh
#
# This file (when renamed UserBootscript) is where user 
# startup customizations go.  It is a standard /bin/sh
# shell script.  If you don't know what a shell script
# is, refer to a manual such as the O'Reilly "Bash"
# book. 
#
# At boot time, if the script:
#
#       /boot/home/config/boot/UserBootscript
#
# exists, it is read and the commands in it are run.
#
# This file is a sample that doesn't contain any commands.
# If you rename this file to UserBootscript then you can
# add commands that are run each time your computer is
# booted.
#
# NOTE: this is not where you should put aliases and such 
#       that you want in the shell.  You should put those
#       sorts of things in your .profile.  If you don't
#       understand this you probably should not modify
#       this file.
#
RADAR_DIR="/boot/home/radar"
INSTALL_DIR="${RADAR_DIR}/install"
INSTALL_LOGS_DIR="${INSTALL_DIR}/logs"

/bin/mkdir -p ${INSTALL_LOGS_DIR}
/bin/mkdir -p /boot/floppy > ${INSTALL_LOGS_DIR}/mkdir_floppy.log  2>&1
/bin/mkdir -p /boot/cdrom > ${INSTALL_LOGS_DIR}/mkdir_cdrom.log  2>&1
/bin/mkdir -p /boot/Install > ${INSTALL_LOGS_DIR}/mkdir_Install.log  2>&1
/bin/mkdir -p /boot/InstallPrevious > ${INSTALL_LOGS_DIR}/mkdir_InstallPrevious.log  2>&1
/bin/rm -rf /boot/InstallCurrent > ${INSTALL_LOGS_DIR}/rm_InstallCurrent.log  2>&1
/bin/mkdir -p /boot/InstallCurrent > ${INSTALL_LOGS_DIR}/mkdir_InstallCurrent.log  2>&1
/bin/rm -f ${INSTALL_DIR}/RadarReset* > ${INSTALL_LOGS_DIR}/rm_RadarReset.log  2>&1
${RADAR_DIR}/DriveDaemon &
${RADAR_DIR}/RadarLaunch
