This commit is contained in:
parent
f0cf29363f
commit
0063936dbf
@ -3,7 +3,7 @@
|
||||
# scsi add-single-device mechanism
|
||||
# (c) 1998--2008 Kurt Garloff <kurt@garloff.de>, GNU GPL v2 or later
|
||||
# (c) 2006--2008 Hannes Reinecke, GNU GPL v2 or later
|
||||
# $Id: rescan-scsi-bus.sh,v 1.28 2008/09/12 18:28:02 garloff Exp $
|
||||
# $Id: rescan-scsi-bus.sh,v 1.29 2008/10/29 10:03:04 garloff Exp $
|
||||
|
||||
setcolor ()
|
||||
{
|
||||
@ -272,9 +272,9 @@ idlist ()
|
||||
# Returns the list of existing LUNs
|
||||
getluns ()
|
||||
{
|
||||
if test ! -x /usr/bin/sg_luns; then return ""; fi
|
||||
if test ! -x /usr/bin/sg_luns; then return; fi
|
||||
sgdevice
|
||||
if test -z "$SGDEV"; then return ""; fi
|
||||
if test -z "$SGDEV"; then return; fi
|
||||
sg_luns -d /dev/$SGDEV | sed -n 's/.*lun=\(.*\)/\1/p'
|
||||
}
|
||||
|
||||
@ -463,7 +463,7 @@ expandlist ()
|
||||
echo $result
|
||||
}
|
||||
|
||||
if test ! -d /proc/scsi/; then
|
||||
if test ! -d /sys/class/scsi_host/ -a ! -d /proc/scsi/; then
|
||||
echo "Error: SCSI subsystem not active"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 29 11:05:47 CET 2008 - garloff@suse.de
|
||||
|
||||
- rescan-scsi-bus.sh 1.29:
|
||||
* Fix error in script (returning "" does not work)
|
||||
* Support systems without /proc/scsi
|
||||
- Don't install INSTALL
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 30 14:11:15 CEST 2008 - hare@suse.de
|
||||
|
||||
|
@ -28,7 +28,7 @@ Obsoletes: scsi <= 1.7_2.38_1.25_0.19_1.02_0.93
|
||||
AutoReqProv: on
|
||||
PreReq: %insserv_prereq
|
||||
Version: 1.27
|
||||
Release: 15
|
||||
Release: 16
|
||||
Summary: A collection of tools that send SCSI commands to devices
|
||||
Source: http://sg.torque.net/sg/p/sg3_utils-%{sgver}.tar.bz2
|
||||
Source2: http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
|
||||
@ -103,7 +103,7 @@ install -m 755 %{S:2} $RPM_BUILD_ROOT%{_bindir}
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README README.sg_start
|
||||
%doc ChangeLog INSTALL CREDITS NEWS
|
||||
%doc ChangeLog CREDITS NEWS
|
||||
%attr(755,root,root) %{_bindir}/sg_dd
|
||||
%attr(755,root,root) %{_bindir}/sg_inq
|
||||
%attr(755,root,root) %{_bindir}/sg_scan
|
||||
@ -225,6 +225,11 @@ test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROO
|
||||
rm -rf $RPM_BUILD_DIR/sg3_utils-%{sgver}
|
||||
|
||||
%changelog
|
||||
* Wed Oct 29 2008 garloff@suse.de
|
||||
- rescan-scsi-bus.sh 1.29:
|
||||
* Fix error in script (returning "" does not work)
|
||||
* Support systems without /proc/scsi
|
||||
- Don't install INSTALL
|
||||
* Tue Sep 30 2008 hare@suse.de
|
||||
- Add %%insserv_prereq (bnc#423204)
|
||||
* Fri Sep 12 2008 garloff@suse.de
|
||||
|
Loading…
Reference in New Issue
Block a user