Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65473 - hdparm script issues
Summary: hdparm script issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-26 17:41 UTC by David Grant
Modified: 2004-09-27 22:19 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 David Grant 2004-09-26 17:41:07 UTC
I don't know what is going on with my hdc.  The /sbin/runscript.sh: line 93: [: too many arguments error makes it seem like it's a problem with the hdparm script or with runscript.sh...

/etc/conf.d/hdparm:

hda_args="-d1 -a64 -X udma6 -c3 -m16 -u1 -A1 -S241"
hdc_args="-d1 -u1 -X udma2"
hdd_args="-d1 -u1 -X udma2"
hde_args="-X udma2"

#/etc/init.d/hdparm restart
 * Starting hdparm...                     [ ok ]
 * Running hdparm on /dev/hde...
 * Running hdparm on /dev/hda...
/sbin/runscript.sh: line 93: [: too many arguments
 * Running hdparm on /dev/hdd...
Comment 1 Chris Smith 2004-09-27 13:39:42 UTC
The delimiting quotes for $args are missing from line 93 of /etc/init.d/hdparm

Should read:
[ -z "$args" ] && for alias in /dev/cdroms/*

Does read:
[ -z $args ] && for alias in /dev/cdroms/*
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-27 22:19:28 UTC
fixed.