1b3d94504SStephan Aßmus#!/bin/sh
2b3d94504SStephan Aßmus##########################################################
3b3d94504SStephan Aßmus##
4b3d94504SStephan Aßmus##     USB Storage Module installation script
5b3d94504SStephan Aßmus##
6b3d94504SStephan Aßmus##  This file is a part of BeOS USB SCSI interface module project.
7b3d94504SStephan Aßmus##  Copyright (c) 2003-2004 by Siarzhuk Zharski <imker@gmx.li>
8b3d94504SStephan Aßmus##  All rights reserved.
9b3d94504SStephan Aßmus##
10b3d94504SStephan Aßmus##  $Source: /cvsroot/sis4be/usb_scsi/freecom/install.sh,v $
11b3d94504SStephan Aßmus##  $Author: zharik $
12b3d94504SStephan Aßmus##  $Revision: 1.1 $
13b3d94504SStephan Aßmus##  $Date: 2005/04/09 22:16:17 $
14b3d94504SStephan Aßmus##
15b3d94504SStephan Aßmus##########################################################
16b3d94504SStephan Aßmus
17b3d94504SStephan AßmusMODULE_TITLE="FREECOM extension for USB Storage Module"
18b3d94504SStephan AßmusMODULE_NAME=freecom
19b3d94504SStephan AßmusSETTINGS_NAME=usb_scsi
20b3d94504SStephan Aßmus
21b3d94504SStephan Aßmusanswer=`alert "Do you really want to install the $MODULE_TITLE ?" "No" "Yes"`
22b3d94504SStephan Aßmusif [ $answer == "No" ]; then
23b3d94504SStephan Aßmus	exit
24b3d94504SStephan Aßmusfi
25b3d94504SStephan Aßmus
26b3d94504SStephan Aßmus/boot/beos/bin/install -d ~/config/add-ons/kernel/generic/usb_scsi_extension/
27b3d94504SStephan Aßmus/boot/beos/bin/install `dirname $0`/$MODULE_NAME ~/config/add-ons/kernel/generic/usb_scsi_extension/$MODULE_NAME
28b3d94504SStephan Aßmus
29b3d94504SStephan Aßmus#  TODO!!!
30b3d94504SStephan Aßmus#if [ -e ~/config/settings/kernel/drivers/$SETTINGS_NAME ]; then
31b3d94504SStephan Aßmus#/boot/beos/bin/cp `dirname $0`/$SETTINGS_NAME.sample ~/config/settings/kernel/drivers/
32b3d94504SStephan Aßmus#else 
33b3d94504SStephan Aßmus#/boot/beos/bin/cp `dirname $0`/$SETTINGS_NAME.sample ~/config/settings/kernel/drivers/$SETTINGS_NAME
34b3d94504SStephan Aßmus#fi
35b3d94504SStephan Aßmus
36b3d94504SStephan Aßmusmimeset ~/config/add-ons/kernel/generic/usb_scsi_extension/$MODULE_NAME
37b3d94504SStephan Aßmus
38b3d94504SStephan AßmusINSTALLED_MESSAGE="The $MODULE_TITLE has been installed on your system. You have to review/edit settings for your FREECOM device."
39b3d94504SStephan Aßmusalert "$INSTALLED_MESSAGE" "Edit settings"
40b3d94504SStephan Aßmus
41b3d94504SStephan AßmusStyledEdit /boot/home/config/settings/kernel/drivers/$SETTINGS_NAME
42