#! /bin/sh
################################################################################
# PROJECT:
#   LANE MACHINE USER INTERFACE
#
# FILE NAME:
#  usbadd
#
# PURPOSE:
#  This script is called when a USB stick is inserted while using the LiveUSB.
#
# NOTES:
#  Input value is the location of the USB stick. example: /dev/sda1/ or /dev/sdc1/
#  The default value is /dev/sda1/
#
# COPYRIGHT NOTICE:
#  Copyright 2008 All rights reserved
#  Brunswick Corp.
#  Proprietary Information
#
# REVISION HISTORY:
#     v1.0 2008/03/13 08:30:00 jproefrock - Initial
################################################################################

DEVICE="/dev/sda1"

# Test input
if [ $# != 0 ]
    then
    DEVICE="$1"
fi

echo $DEVICE > /opt/LM_GUI/scripts/usb.txt
killall -USR1 wish

exit 0
