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/install.sh,v $ 11## $Author: zharik $ 12## $Revision: 1.5 $ 13## $Date: 2004/06/06 09:19:47 $ 14## 15########################################################## 16 17MODULE_TITLE="USB Storage Module" 18MODULE_NAME=usb 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/busses/scsi/ 27/boot/beos/bin/install `dirname $0`/$MODULE_NAME ~/config/add-ons/kernel/busses/scsi/$MODULE_NAME 28if [ -e ~/config/settings/kernel/drivers/$SETTINGS_NAME ]; then 29/boot/beos/bin/cp `dirname $0`/$SETTINGS_NAME.sample ~/config/settings/kernel/drivers/ 30else 31/boot/beos/bin/cp `dirname $0`/$SETTINGS_NAME.sample ~/config/settings/kernel/drivers/$SETTINGS_NAME 32fi 33 34mimeset ~/config/add-ons/kernel/busses/scsi/$MODULE_NAME 35mimeset ~/config/settings/kernel/drivers/$SETTINGS_NAME 36 37INSTALLED_MESSAGE="The $MODULE_TITLE has been installed on your system.You have to reboot your system before using it." 38answer=`alert "$INSTALLED_MESSAGE" "Edit settings" "Reboot" "OK"` 39if [ $answer == "OK" ]; then 40 exit 41elif [ $answer == "Reboot" ]; then 42 shutdown -r 43fi 44 45StyledEdit /boot/home/config/settings/kernel/drivers/$SETTINGS_NAME 46