xref: /haiku/src/add-ons/kernel/busses/scsi/usb/freecom/uninstall.sh (revision b3d94504c208adafebbf2ba62ae7fc4e0b7d68f7)
1*b3d94504SStephan Aßmus#!/bin/sh
2*b3d94504SStephan Aßmus##########################################################
3*b3d94504SStephan Aßmus##
4*b3d94504SStephan Aßmus##     USB Storage Module uninstallation 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/uninstall.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ßmusDRIVER_TITLE="FREECOM extension for USB Storage Module"
18*b3d94504SStephan AßmusSETTINGS_NAME=usb_scsi
19*b3d94504SStephan AßmusDRIVER_TARGET_NAME=freecom
20*b3d94504SStephan Aßmus
21*b3d94504SStephan Aßmusanswer=`alert "Do you really want to uninstall the $DRIVER_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ßmusrm ~/config/add-ons/kernel/generic/usb_scsi_extension/$DRIVER_TARGET_NAME
27*b3d94504SStephan Aßmus
28*b3d94504SStephan Aßmusanswer=`alert "The $DRIVER_TITLE has been removed from your system. You can now remove FREECOM device description for settings file." "OK" "Edit settings"`
29*b3d94504SStephan Aßmusif [ $answer == "OK" ]; then
30*b3d94504SStephan Aßmus  exit
31*b3d94504SStephan Aßmusfi
32*b3d94504SStephan Aßmus
33*b3d94504SStephan AßmusStyledEdit /boot/home/config/settings/kernel/drivers/$SETTINGS_NAME
34