summaryrefslogtreecommitdiff
path: root/packages/scsi-idle/files
diff options
context:
space:
mode:
authorRobert Demski <Robert.Demski@wp.pl>2006-10-02 18:08:05 +0000
committerMichael Lauer <mickey@vanille-media.de>2006-10-02 18:08:05 +0000
commite25d511041afbdfd44f27709c6567bfaeb6fcdd3 (patch)
treed22bd5931b6e7086e7947f199dc59401711a8d73 /packages/scsi-idle/files
parent9f4ce64d0a8250568d46439730cef1ca03269fde (diff)
add scsi idle: turn off SCSI disks when idle
Diffstat (limited to 'packages/scsi-idle/files')
-rw-r--r--packages/scsi-idle/files/.mtn2git_empty0
-rw-r--r--packages/scsi-idle/files/makefile.patch9
-rw-r--r--packages/scsi-idle/files/scsi-idle.init.patch12
3 files changed, 21 insertions, 0 deletions
diff --git a/packages/scsi-idle/files/.mtn2git_empty b/packages/scsi-idle/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/scsi-idle/files/.mtn2git_empty
diff --git a/packages/scsi-idle/files/makefile.patch b/packages/scsi-idle/files/makefile.patch
new file mode 100644
index 0000000000..5a31fc8277
--- /dev/null
+++ b/packages/scsi-idle/files/makefile.patch
@@ -0,0 +1,9 @@
+diff -ur scsi-idle-2.4.23/Makefile scsi-idle-2.4.23~patched/Makefile
+--- scsi-idle-2.4.23/Makefile 2004-01-31 11:34:30.000000000 +0100
++++ scsi-idle-2.4.23~patched/Makefile 2005-08-29 19:21:29.116560624 +0200
+@@ -1,4 +1,4 @@
+-KSRC ?= /usr/src/linux
++KSRC ?= ${QPEDIR}
+ CFLAGS=-Wall -O2 -fomit-frame-pointer -pipe -s -include $(KSRC)/include/scsi/scsi_ioctl.h -include $(KSRC)/include/linux/major.h
+
+ TARGETS = scsi-start scsi-stop scsi-idle
diff --git a/packages/scsi-idle/files/scsi-idle.init.patch b/packages/scsi-idle/files/scsi-idle.init.patch
new file mode 100644
index 0000000000..54a7503eca
--- /dev/null
+++ b/packages/scsi-idle/files/scsi-idle.init.patch
@@ -0,0 +1,12 @@
+diff -ur scsi-idle-2.4.23/debian/scsi-idle.init scsi-idle-2.4.23~patched/debian/scsi-idle.init
+--- scsi-idle-2.4.23/debian/scsi-idle.init 2004-01-31 11:47:02.000000000 +0100
++++ scsi-idle-2.4.23~patched/debian/scsi-idle.init 2005-08-31 18:56:46.000000000 +0200
+@@ -21,7 +21,7 @@
+ export BEQUIET
+ if [ "$PAIRS" ] ; then
+ set -- $PAIRS
+- while [ "$#" !=0 ] ; do
++ while [ "$#" != 0 ] ; do
+ PIDFILE=/var/run/$NAME`echo $1 | tr / _`.pid
+ export PIDFILE
+ echo -n " $1"