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