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