Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59497 - hdparm-5.5-r3 init script buggy
Summary: hdparm-5.5-r3 init script buggy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-05 03:00 UTC by scaba
Modified: 2004-08-06 07: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 scaba 2004-08-05 03:00:13 UTC
when starting hdparm, either on boot up or manually i get the following error

root@simon ~ # /etc/init.d/hdparm start
* Starting hdparm...                                                    [ ok ]
/etc/init.d/hdparm: line 28: [: too many arguments
/etc/init.d/hdparm: line 28: [: -d1: unary operator expected

it was working just fine with version 5.5-r2 and earlier. hdparm 5.5-r0 (the only 5.5 version still in portage beside -r3) works flawlessly right now.

Reproducible: Always
Steps to Reproduce:
1. open console
2. type '/etc/init.d/hdparm start'
3. *swear* :)
Actual Results:  
'hdparm -v /dev/hda' (after starting the init script) gives 

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 64 (on)
 geometry     = 58140/16/63, sectors = 58605120, start = 0

Expected Results:  
running 'hdparm -d1 -X69 -A1 -m16 -u1 -a64 -c3 /dev/hda' (parameters from
/etc/conf.d/hdparm) after that gives

/dev/hda:
 setting fs readahead to 64
 setting 32-bit IO_support flag to 3
 setting multcount to 16
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 setting xfermode to 69 (UltraDMA mode5)
 setting drive read-lookahead to 1 (on)
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 readahead    = 64 (on)

>> emerge info

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r0,
2.6.8-rc2-nitro4)
=================================================================
System uname: 2.6.8-rc2-nitro4 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
ftp://ftp.solnet.ch/mirror/Gentoo/ http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-gnome-current
/usr/local/bmg-main"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif
gnome gpm gstreamer gtk gtk2 gtkhtml imlib java jpeg libg++ libwww mad mikmod
mmx motif mpeg ncurses nls nptl oggvorbis opengl pam pdflib perl png python
quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xv zlib"


>> /etc/conf.d/hdparm

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/files/hdparm-conf.d,v 1.3
2004/07/15 00:43:00 agriffis Exp $

# You can either set hdparm arguments for each drive using disc*_args and
cdrom*_args..
disc0_args="-d1 -X69 -A1 -m16 -u1 -a64 -c3"
cdrom0_args="-d1 -X66"

# Or, you can set hdparm options for ALL drives using all_args..
# This mimics the behavior of the current script.
#all_args="-d1"
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-05 04:19:27 UTC
fixed in -r4
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-05 04:41:44 UTC
-r4 manifest is wrong
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-05 06:08:12 UTC
sorry, fixed
Comment 4 scaba 2004-08-06 07:19:38 UTC
thanks a lot. working perfectly now.