SPECS: rescan-scsi-bus.spec (NEW) - new

glen glen at pld-linux.org
Tue Feb 13 14:46:50 CET 2007


Author: glen                         Date: Tue Feb 13 13:46:50 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   rescan-scsi-bus.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/rescan-scsi-bus.spec
diff -u /dev/null SPECS/rescan-scsi-bus.spec:1.1
--- /dev/null	Tue Feb 13 14:46:50 2007
+++ SPECS/rescan-scsi-bus.spec	Tue Feb 13 14:46:44 2007
@@ -0,0 +1,49 @@
+# $Revision$, $Date$
+Summary:	Rescan SCSI bus in Linux
+Name:		rescan-scsi-bus
+Version:	1.24
+Release:	1
+License:	GPL
+Group:		Applications
+Source0:	http://www.garloff.de/kurt/linux/%{name}.sh
+# Source0-md5:	4dad7c30e1e61defd2fb38a84087c013
+URL:		http://www.garloff.de/kurt/linux/
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Linux allows you to add and remove SCSI devices without rebooting by
+using the echo "scsi add-single-device H C I L" > /proc/scsi/scsi
+command (H = host, C = channel, I = SCSI ID, L = SCSI LUN). The
+remove-single-device command works similarily.
+
+Note, however, that the SCSI bus was NOT designed for hot-plugging, so
+you might be out of luck ... And you have to be sure, that termination
+is OK. All filesystems on a device have to be unmounted before
+disconnecting it or powering it down.
+
+%prep
+%setup -q -c -T
+install %{SOURCE0} %{name}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install %{name} $RPM_BUILD_ROOT%{_sbindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/rescan-scsi-bus
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/02/13 13:46:44  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list