1b3d94504SStephan Aßmus#!/bin/sh
2b3d94504SStephan Aßmus##########################################################
3b3d94504SStephan Aßmus##
4b3d94504SStephan Aßmus##     USB Storage Module uninstallation 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/uninstall.sh,v $
11b3d94504SStephan Aßmus##  $Author: zharik $
12b3d94504SStephan Aßmus##  $Revision: 1.3 $
13b3d94504SStephan Aßmus##  $Date: 2004/06/06 09:19:47 $
14b3d94504SStephan Aßmus##
15b3d94504SStephan Aßmus##########################################################
16b3d94504SStephan Aßmus
17b3d94504SStephan AßmusDRIVER_TITLE="USB Storage Module"
18b3d94504SStephan AßmusDRIVER_NAME=usb_scsi
19b3d94504SStephan AßmusDRIVER_TARGET_NAME=usb
20b3d94504SStephan Aßmus
21b3d94504SStephan Aßmusanswer=`alert "Do you really want to uninstall the $DRIVER_TITLE ?" "No" "Yes"`
22b3d94504SStephan Aßmusif [ $answer == "No" ]; then
23b3d94504SStephan Aßmus	exit
24b3d94504SStephan Aßmusfi
25b3d94504SStephan Aßmus
26b3d94504SStephan Aßmusrm ~/config/add-ons/kernel/busses/scsi/$DRIVER_TARGET_NAME
27b3d94504SStephan Aßmus#rm ~/config/settings/kernel/drivers/$DRIVER_NAME
28b3d94504SStephan Aßmus
29b3d94504SStephan Aßmusanswer=`alert "The $DRIVER_TITLE has been removed from your system.You need to reboot your system to finish uninstalletion" "Reboot" "OK"`
30b3d94504SStephan Aßmusif [ $answer == "Reboot" ]; then
31b3d94504SStephan Aßmus  shutdown -r
32b3d94504SStephan Aßmusfi
33