summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-10-03 18:42:34 +0000
committerMike Frysinger <vapier@gentoo.org>2003-10-03 18:42:34 +0000
commit807bd0734e4772e80e69a8fa56a71f485d0fe2d9 (patch)
tree50f48dba526a1dd57a655cf0f4c70e81f56fd6d4 /sys-apps
parenttouchups (diff)
downloadgentoo-2-807bd0734e4772e80e69a8fa56a71f485d0fe2d9.tar.gz
gentoo-2-807bd0734e4772e80e69a8fa56a71f485d0fe2d9.tar.bz2
gentoo-2-807bd0734e4772e80e69a8fa56a71f485d0fe2d9.zip
not everyone has a cdrom
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/hdparm/files/hdparm-new-init12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys-apps/hdparm/files/hdparm-new-init b/sys-apps/hdparm/files/hdparm-new-init
index 6e7ad7c06649..1fe83d137c1e 100644
--- a/sys-apps/hdparm/files/hdparm-new-init
+++ b/sys-apps/hdparm/files/hdparm-new-init
@@ -1,8 +1,8 @@
#!/sbin/runscript
-# 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 $
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 2003 Justin "Nagash" Jones
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/files/hdparm-new-init,v 1.3 2003/10/03 18:42:34 vapier Exp $
depend() {
need localmount
@@ -22,7 +22,7 @@ checkconfig() {
ewarn "Skipping $i hdparm does not support SCSI devices."
fi
done
- for i in `dir /dev/cdroms`
+ for i in `dir /dev/cdroms 2>/dev/null`
do
if [ ! -n "`ls -la /dev/cdroms/${i} | grep scsi`" ]
then
@@ -100,7 +100,5 @@ start() {
stop() {
ebegin "Stopping hdparm"
-
eend $? "Failed to stop hdparm."
}
-