Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35273 - hdparm rc script is noisy w/o devfs
Summary: hdparm rc script is noisy w/o devfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Low trivial
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-07 11:04 UTC by Radoslaw Szkodzinski
Modified: 2004-01-25 15:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2003-12-07 11:04:04 UTC
/etc/init.d/hdparm on Gentoo system w/o devfs complains about not being able to find /dev/discs - this trivial patch fixes it:
(sorry for messed up modification dates)

--- /etc/init.d/hdparm.orig       2003-12-03 20:01:17.000000000 +0100
+++ /etc/init.d/hdparm    2003-12-06 10:20:09.000000000 +0100
@@ -12,7 +12,7 @@
        drives=""
        cdroms=""
 
-       for i in `dir /dev/discs`
+       for i in `dir /dev/discs 2>/dev/null`
        do
                if [ ! -n "`ls -la /dev/discs/${i} | grep scsi`" ]
                then
Comment 1 SpanKY gentoo-dev 2003-12-08 06:16:07 UTC
rather than just piping everything into /dev/null why dont we update the script to check to handle devfs and an old school dev setup ? (hd[abcde])
Comment 2 SpanKY gentoo-dev 2004-01-25 15:26:55 UTC
ah whatever, added the patch