summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2003-08-26 18:05:46 +0000
committerHeinrich Wendel <lanius@gentoo.org>2003-08-26 18:05:46 +0000
commit9781fdfae09f157aebc564a56624535ff897d7f7 (patch)
treedb32b792402376d5396f116f90b0b309a80a5663 /sys-apps/hdparm/files
parentAdded some use flags. Fixed some problems. (diff)
downloadgentoo-2-9781fdfae09f157aebc564a56624535ff897d7f7.tar.gz
gentoo-2-9781fdfae09f157aebc564a56624535ff897d7f7.tar.bz2
gentoo-2-9781fdfae09f157aebc564a56624535ff897d7f7.zip
bug #27282
Diffstat (limited to 'sys-apps/hdparm/files')
-rw-r--r--sys-apps/hdparm/files/hdparm-new-init11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys-apps/hdparm/files/hdparm-new-init b/sys-apps/hdparm/files/hdparm-new-init
index fe6050136b98..6e7ad7c06649 100644
--- a/sys-apps/hdparm/files/hdparm-new-init
+++ b/sys-apps/hdparm/files/hdparm-new-init
@@ -1,7 +1,8 @@
#!/sbin/runscript
-# Copyright 2003 Justin "Nagash" Jones
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/files/hdparm-new-init,v 1.1 2003/03/01 21:17:39 sethbc Exp $
+# Copyright 2003 Justin "Nagash" Jones Distributed under the terms of the GNU
+# General Public License, v2 or later $Header:
+# /home/cvsroot//gentoo-x86/sys-apps/hdparm/files/hdparm-new-init,v 1.1
+# 2003/03/01 21:17:39 sethbc Exp $
depend() {
need localmount
@@ -16,7 +17,7 @@ checkconfig() {
if [ ! -n "`ls -la /dev/discs/${i} | grep scsi`" ]
then
all_discs="${all_discs} `basename ${i}`"
- elif [ ! -n "${all_args}" ]
+ elif [ -n "${all_args}" ]
then
ewarn "Skipping $i hdparm does not support SCSI devices."
fi
@@ -26,7 +27,7 @@ checkconfig() {
if [ ! -n "`ls -la /dev/cdroms/${i} | grep scsi`" ]
then
all_cdroms="${all_cdroms} `basename ${i}`"
- elif [ ! -n "${all_args}" ]
+ elif [ -n "${all_args}" ]
then
ewarn "Skipping $i hdparm does not support SCSI devices."
fi