forked from Exioncore/rcraid-dkms
-
Notifications
You must be signed in to change notification settings - Fork 3
/
uninstall
36 lines (34 loc) · 1.37 KB
/
uninstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# Script to uninstall the RAIDCore drivers from the SDK for supported platforms
# (RedHat and SuSE).
#
# Copyright © 2006-2008 Ciprico Inc. All rights reserved.
# Copyright © 2008-2013 Dot Hill Systems Corp. All rights reserved.
#
# Use of this software is subject to the terms and conditions of the written
# software license agreement between you and DHS (the "License"),
# including, without limitation, the following (as further elaborated in the
# License): (i) THIS SOFTWARE IS PROVIDED "AS IS", AND DHS DISCLAIMS
# ANY AND ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, STATUTORY,
# BY CONDUCT, OR OTHERWISE; (ii) this software may be used only in connection
# with the integrated circuit product and storage software with which it was
# designed to be used; (iii) this source code is the confidential information
# of DHS and may not be disclosed to any third party; and (iv) you may not
# make any modification or take any action that would cause this software,
# or any other Dot Hill software, to fall under any GPL license or any other
# open source license.
#
if [ $UID != 0 ] ; then
echo "This script must be run as root"
exit 1
fi
if [ -e /etc/redhat-release ]; then
(cd src; sh ./uninstall_rh);
elif [ -e /etc/SuSE-release ]; then
(cd src; sh ./uninstall_suse);
else
KVERS=`uname -r`
rm -f /lib/modules/$(KVERS)/kernel/drivers/scsi/rcraid.ko
exit
fi