public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] hdparm and baselayout
@ 2006-08-17 19:23 Daniel Pielmeier
  2006-08-18 12:09 ` [gentoo-user] " Daniel Pielmeier
  0 siblings, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-17 19:23 UTC (permalink / raw
  To: gentoo-user

Hi all,

it seems that the configuration of /etc/conf.d/hdparm has changed.

With the new baselayout i only get my harddiscs configured by the hdparm
init-script, but not my dvdrom-devices

starting the hdparm init-script gives me:

/etc/init.d/hdparm start
* Running hdparm on /dev/hda ...                 [ ok ]
* Running hdparm on /dev/hdb ...                 [ ok ]

here are my settings from /etc/conf.d/hdparm

hda_args="-A1 -X70 -d1 -u1 -m16 -a64"
hdb_args="-A1 -X69 -d1 -u1 -m16 -a64"
hdc_args="-d1 -u1 -a256 -E8"
hdd_args="$hdc_args"

Does anybody know how i have to change my configuration? Or is this a
problem with the new baselayout?

Thanks

Daniel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* [gentoo-user] Re: hdparm and baselayout
  2006-08-17 19:23 [gentoo-user] hdparm and baselayout Daniel Pielmeier
@ 2006-08-18 12:09 ` Daniel Pielmeier
  2006-08-18 13:13   ` Andrew Frink
  0 siblings, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 12:09 UTC (permalink / raw
  To: gentoo-user

Doesn't anybody have a clue?
Or did anyone receive this message, because i heard of messages which
get lost on this list!

Thanks,

Daniel

2006/8/17, Daniel Pielmeier <daniel.pielmeier@googlemail.com>:
> Hi all,
>
> it seems that the configuration of /etc/conf.d/hdparm has changed.
>
> With the new baselayout i only get my harddiscs configured by the hdparm
> init-script, but not my dvdrom-devices
>
> starting the hdparm init-script gives me:
>
> /etc/init.d/hdparm start
> * Running hdparm on /dev/hda ...                 [ ok ]
> * Running hdparm on /dev/hdb ...                 [ ok ]
>
> here are my settings from /etc/conf.d/hdparm
>
> hda_args="-A1 -X70 -d1 -u1 -m16 -a64"
> hdb_args="-A1 -X69 -d1 -u1 -m16 -a64"
> hdc_args="-d1 -u1 -a256 -E8"
> hdd_args="$hdc_args"
>
> Does anybody know how i have to change my configuration? Or is this a
> problem with the new baselayout?
>
> Thanks
>
> Daniel
>
>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 12:09 ` [gentoo-user] " Daniel Pielmeier
@ 2006-08-18 13:13   ` Andrew Frink
  2006-08-18 16:03     ` Dale
  0 siblings, 1 reply; 22+ messages in thread
From: Andrew Frink @ 2006-08-18 13:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Daniel,
I think there are some settings in /etc/conf.d/hdparm that control if just
hard disks or both get  options changed.

Andrew
P.S. I'm not at my Linux box so I can't say for sure

On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
>
> Doesn't anybody have a clue?
> Or did anyone receive this message, because i heard of messages which
> get lost on this list!
>
> Thanks,
>
> Daniel
>
> 2006/8/17, Daniel Pielmeier <daniel.pielmeier@googlemail.com>:
> > Hi all,
> >
> > it seems that the configuration of /etc/conf.d/hdparm has changed.
> >
> > With the new baselayout i only get my harddiscs configured by the hdparm
> > init-script, but not my dvdrom-devices
> >
> > starting the hdparm init-script gives me:
> >
> > /etc/init.d/hdparm start
> > * Running hdparm on /dev/hda ...                 [ ok ]
> > * Running hdparm on /dev/hdb ...                 [ ok ]
> >
> > here are my settings from /etc/conf.d/hdparm
> >
> > hda_args="-A1 -X70 -d1 -u1 -m16 -a64"
> > hdb_args="-A1 -X69 -d1 -u1 -m16 -a64"
> > hdc_args="-d1 -u1 -a256 -E8"
> > hdd_args="$hdc_args"
> >
> > Does anybody know how i have to change my configuration? Or is this a
> > problem with the new baselayout?
> >
> > Thanks
> >
> > Daniel
> >
> >
> --
> gentoo-user@gentoo.org mailing list
>
>

[-- Attachment #2: Type: text/html, Size: 2035 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 13:13   ` Andrew Frink
@ 2006-08-18 16:03     ` Dale
  2006-08-18 18:50       ` Daniel Pielmeier
  0 siblings, 1 reply; 22+ messages in thread
From: Dale @ 2006-08-18 16:03 UTC (permalink / raw
  To: gentoo-user

Andrew Frink wrote:
> Daniel,
> I think there are some settings in /etc/conf.d/hdparm that control if
> just hard disks or both get  options changed. 
>
> Andrew
> P.S. I'm not at my Linux box so I can't say for sure
>
> On 8/18/06, *Daniel Pielmeier* <daniel.pielmeier@googlemail.com
> <mailto:daniel.pielmeier@googlemail.com>> wrote:
>
>     Doesn't anybody have a clue?
>     Or did anyone receive this message, because i heard of messages which
>     get lost on this list!
>
>     Thanks,
>
>     Daniel
>
>     2006/8/17, Daniel Pielmeier < daniel.pielmeier@googlemail.com
>     <mailto:daniel.pielmeier@googlemail.com>>:
>     > Hi all,
>     >
>     > it seems that the configuration of /etc/conf.d/hdparm has changed.
>     >
>     > With the new baselayout i only get my harddiscs configured by
>     the hdparm
>     > init-script, but not my dvdrom-devices
>     >
>     > starting the hdparm init-script gives me:
>     >
>     > /etc/init.d/hdparm start
>     > * Running hdparm on /dev/hda ...                 [ ok ]
>     > * Running hdparm on /dev/hdb ...                 [ ok ]
>     >
>     > here are my settings from /etc/conf.d/hdparm
>     >
>     > hda_args="-A1 -X70 -d1 -u1 -m16 -a64"
>     > hdb_args="-A1 -X69 -d1 -u1 -m16 -a64"
>     > hdc_args="-d1 -u1 -a256 -E8"
>     > hdd_args="$hdc_args"
>     >
>     > Does anybody know how i have to change my configuration? Or is
>     this a
>     > problem with the new baselayout?
>     >
>     > Thanks
>     >
>     > Daniel
>     >
>     >
>     --
>     gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list
>
>


Just in case his is different, this is what mine says:

> # /etc/conf.d/hdparm: config file for /etc/init.d/hdparm
>
> # You can either set hdparm arguments for each drive using hdX_args,
> # discX_args, cdromX_args and genericX_args, e.g.
> #
> # hda_args="-d1 -X66"
> # disc1_args="-d1"
> # cdrom0_args="-d1"
>
> # or you can set options for all PATA drives
> pata_all_args="-d1"
>
> # or you can set options for all SATA drives
> sata_all_args=""
>
> # or, you can set hdparm options for all drives
> all_args=""

So you can set CD's, pata and sata drives separately.  So you are correct.

Dale

:-)  :-)

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 16:03     ` Dale
@ 2006-08-18 18:50       ` Daniel Pielmeier
  2006-08-18 19:04         ` Dale
  2006-08-18 19:46         ` Richard Fish
  0 siblings, 2 replies; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 18:50 UTC (permalink / raw
  To: gentoo-user

Andrew Frink wrote:
> Daniel,
> I think there are some settings in /etc/conf.d/hdparm that control if
> just hard disks or both get  options changed. 
>
> Andrew
> P.S. I'm not at my Linux box so I can't say for sure

Dale schrieb:
> Just in case his is different, this is what mine says:
> 
>> # /etc/conf.d/hdparm: config file for /etc/init.d/hdparm
>>
>> # You can either set hdparm arguments for each drive using hdX_args,
>> # discX_args, cdromX_args and genericX_args, e.g.
>> #
>> # hda_args="-d1 -X66"
>> # disc1_args="-d1"
>> # cdrom0_args="-d1"
>>
>> # or you can set options for all PATA drives
>> pata_all_args="-d1"
>>
>> # or you can set options for all SATA drives
>> sata_all_args=""
>>
>> # or, you can set hdparm options for all drives
>> all_args=""
> 
> So you can set CD's, pata and sata drives separately.  So you are correct.
> 
> Dale
> 
> :-)  :-)
> 

so when my settings are correct, why doesn't the hdparm init-script 
apply this settings to my dvd-rom devices /dev/hdc and /dev/hdd
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 18:50       ` Daniel Pielmeier
@ 2006-08-18 19:04         ` Dale
  2006-08-18 19:16           ` Daniel Pielmeier
  2006-08-18 19:46         ` Richard Fish
  1 sibling, 1 reply; 22+ messages in thread
From: Dale @ 2006-08-18 19:04 UTC (permalink / raw
  To: gentoo-user

Daniel Pielmeier wrote:
> Andrew Frink wrote:
>> Daniel,
>> I think there are some settings in /etc/conf.d/hdparm that control if
>> just hard disks or both get  options changed.
>> Andrew
>> P.S. I'm not at my Linux box so I can't say for sure
>
> Dale schrieb:
>> Just in case his is different, this is what mine says:
>>
>>> <snip>
>>>
>>> # or, you can set hdparm options for all drives
>>> all_args=""
>>
>> So you can set CD's, pata and sata drives separately.  So you are
>> correct.
>>
>> Dale
>>
>> :-)  :-)
>>
>
> so when my settings are correct, why doesn't the hdparm init-script
> apply this settings to my dvd-rom devices /dev/hdc and /dev/hdd

Good question.  I don't use hdparm since mine are fast without it.  It
should work though.  You may want to make sure the all_args= line is
commented out.  May be that it is using that since it is the last line
it reads.

Not real sure though.

Dale

:-)  :-)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 19:04         ` Dale
@ 2006-08-18 19:16           ` Daniel Pielmeier
  0 siblings, 0 replies; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 19:16 UTC (permalink / raw
  To: gentoo-user

> Good question.  I don't use hdparm since mine are fast without it.  It
> should work though.  You may want to make sure the all_args= line is
> commented out.  May be that it is using that since it is the last line
> it reads.
> 
> Not real sure though.
> 
> Dale
> 
> :-)  :-)


hmm i have commented all out, only my settings listed below are not 
commented

 > hda_args="-A1 -X70 -d1 -u1 -m16 -a64"
 > hdb_args="-A1 -X69 -d1 -u1 -m16 -a64"
 > hdc_args="-d1 -u1 -a256 -E8"
 > hdd_args="$hdc_args"
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 18:50       ` Daniel Pielmeier
  2006-08-18 19:04         ` Dale
@ 2006-08-18 19:46         ` Richard Fish
  2006-08-18 20:10           ` Daniel Pielmeier
  2006-08-18 20:21           ` Daniel Pielmeier
  1 sibling, 2 replies; 22+ messages in thread
From: Richard Fish @ 2006-08-18 19:46 UTC (permalink / raw
  To: gentoo-user

On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
> so when my settings are correct, why doesn't the hdparm init-script
> apply this settings to my dvd-rom devices /dev/hdc and /dev/hdd

Try adding "set -x" at the top of the hdparm init script, and then
'stop' and 'start' it.  The trace output from the 'start' may be
interesting to look at.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 19:46         ` Richard Fish
@ 2006-08-18 20:10           ` Daniel Pielmeier
  2006-08-18 20:30             ` Richard Fish
  2006-08-18 20:21           ` Daniel Pielmeier
  1 sibling, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 20:10 UTC (permalink / raw
  To: gentoo-user

Richard Fish schrieb:
> On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
>> so when my settings are correct, why doesn't the hdparm init-script
>> apply this settings to my dvd-rom devices /dev/hdc and /dev/hdd
> 
> Try adding "set -x" at the top of the hdparm init script, and then
> 'stop' and 'start' it.  The trace output from the 'start' may be
> interesting to look at.
> 
> -Richard

Here is the output of /etc/init.d/hdparm start:

For /dev/hdc and /dev/hdd it says that there is no medium present, but 
is this required for running hdparm on this devices?


/etc/init.d/hdparm start


+ [[ -z start stop restart ]]
+ shift
+ [[ 1 -lt 1 ]]
+ for arg in '$*'
+ case "${arg}" in
+ retval=0
+ for arg in '$*'
+ case "${arg}" in
+ svc_start
+ local x= y= retval=0 startinactive=
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ service_started hdparm
+ test_service_state hdparm started
+ [[ -z hdparm ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/hdparm
+ [[ -L /var/lib/init.d/started/hdparm ]]
+ [[ ! -e /var/lib/init.d/started/hdparm ]]
+ rm -f /var/lib/init.d/started/hdparm
+ return 1
+ service_inactive hdparm
+ test_service_state hdparm inactive
+ [[ -z hdparm ]]
+ [[ -z inactive ]]
+ local f=/var/lib/init.d/inactive/hdparm
+ [[ -L /var/lib/init.d/inactive/hdparm ]]
+ [[ ! -e /var/lib/init.d/inactive/hdparm ]]
+ rm -f /var/lib/init.d/inactive/hdparm
+ return 1
+ mark_service_starting hdparm
+ [[ -z hdparm ]]
+ ln -sn /etc/init.d/hdparm /var/lib/init.d/starting/hdparm
+ [[ -f /var/lib/init.d/started/hdparm ]]
+ [[ -f /var/lib/init.d/inactive/hdparm ]]
+ return 0
+ trap svc_quit INT QUIT TSTP
+ service_message 'Service hdparm starting'
+ [[ no != \y\e\s ]]
+ return
+ broken hdparm
+ check_dependency broken hdparm
+ [[ -z broken ]]
+ [[ -z hdparm ]]
+ local x myservice deps
+ [[ hdparm == \-\t ]]
+ myservice=hdparm
+ get_dep_info hdparm
+ [[ -z hdparm ]]
+ local myservice=hdparm
+ [[ hdparm == '' ]]
++ get_service_index hdparm 0
++ [[ -z hdparm ]]
++ [[ -z 0 ]]
++ local x myservice=hdparm index=0
++ [[ -n 0 ]]
++ [[ 0 -gt 0 ]]
++ (( x=1 ))
++ (( x<=49 ))
++ index=10
++ [[ hdparm == \d\b\u\s ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=20
++ [[ hdparm == \e\s\o\u\n\d ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=30
++ [[ hdparm == \f\i\r\e\s\t\a\r\t\e\r ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=40
++ [[ hdparm == \g\p\m ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=50
++ [[ hdparm == \h\a\l\d ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=60
++ [[ hdparm == \n\e\t\.\e\t\h\0 ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=70
++ [[ hdparm == \n\e\t\.\l\o ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=80
++ [[ hdparm == \h\d\p\a\r\m ]]
++ echo 80
++ return 0
+ rc_index=80
+ rc_mtime=1155931102
+ rc_name=hdparm
+ rc_ineed=
+ rc_needsme=
+ rc_iuse=
+ rc_usesme=
+ rc_ibefore='bootmisc local'
+ rc_iafter=checkroot
+ rc_broken=
+ rc_mtime=1155931102
+ return 0
+ deps=rc_broken
+ [[ -z '' ]]
+ return 1
+ local ib_save=
+ unset IN_BACKGROUND
+ [[ 0 == \0 ]]
+ [[ '' != \y\e\s ]]
++ ineed hdparm
++ check_dependency ineed hdparm
++ [[ -z ineed ]]
++ [[ -z hdparm ]]
++ local x myservice deps
++ [[ hdparm == \-\t ]]
++ myservice=hdparm
++ get_dep_info hdparm
++ [[ -z hdparm ]]
++ local myservice=hdparm
++ [[ hdparm == \h\d\p\a\r\m ]]
++ [[ -n 1155931102 ]]
++ return 0
++ deps=rc_ineed
++ [[ -z '' ]]
++ return 1
++ valid_iuse hdparm
++ valid_i use hdparm
++ local mylevel=boot x= valid=
++ [[ use != \a\f\t\e\r ]]
++ [[ use != \u\s\e ]]
++ [[ -f /var/lib/init.d/softlevel ]]
++ mylevel=default
+++ iuse hdparm
+++ check_dependency iuse hdparm
+++ [[ -z iuse ]]
+++ [[ -z hdparm ]]
+++ local x myservice deps
+++ [[ hdparm == \-\t ]]
+++ myservice=hdparm
+++ get_dep_info hdparm
+++ [[ -z hdparm ]]
+++ local myservice=hdparm
+++ [[ hdparm == \h\d\p\a\r\m ]]
+++ [[ -n 1155931102 ]]
+++ return 0
+++ deps=rc_iuse
+++ [[ -z '' ]]
+++ return 1
++ echo ''
++ return 0
+ local 'startupservices= '
+ local netservices=
++ dolisting '/etc/runlevels/boot/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/etc/runlevels/boot/net.*'
++ [[ /etc/runlevels/boot/net.* != 
\/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\b\o\o\t\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /etc/runlevels/boot/net.lo ]]
++ [[ ! -d /etc/runlevels/boot/net.lo ]]
++ [[ -L /etc/runlevels/boot/net.lo ]]
+++ ls /etc/runlevels/boot/net.lo
++ mylist=' /etc/runlevels/boot/net.lo'
++ echo ' /etc/runlevels/boot/net.lo'
++ dolisting '/etc/runlevels/default/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/etc/runlevels/default/net.*'
++ [[ /etc/runlevels/default/net.* != 
\/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\d\e\f\a\u\l\t\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /etc/runlevels/default/net.eth0 ]]
++ [[ ! -d /etc/runlevels/default/net.eth0 ]]
++ [[ -L /etc/runlevels/default/net.eth0 ]]
+++ ls /etc/runlevels/default/net.eth0
++ mylist=' /etc/runlevels/default/net.eth0'
++ echo ' /etc/runlevels/default/net.eth0'
++ dolisting '/var/lib/init.d/coldplugged/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/var/lib/init.d/coldplugged/net.*'
++ [[ /var/lib/init.d/coldplugged/net.* != 
\/\v\a\r\/\l\i\b\/\i\n\i\t\.\d\/\c\o\l\d\p\l\u\g\g\e\d\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /var/lib/init.d/coldplugged/net.* ]]
++ continue
++ echo ''
+ for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")' 
'$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting 
"/var/lib/init.d/coldplugged/net.*")'
+ netservices=' net.lo'
+ for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")' 
'$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting 
"/var/lib/init.d/coldplugged/net.*")'
+ netservices=' net.lo net.eth0'
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ [[     == *\ \n\e\t\ * ]]
+ [[ -n '' ]]
+ [[ 0 == \0 ]]
+ IN_BACKGROUND=
+ [[ -n '' ]]
+ [[ no == \y\e\s ]]
+ start
+ '[' -e /dev/.devfs ']'
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg=
+ status=0
+ [[ -b /dev/hda ]]
+ [[ 0 == 0 ]]
++ basename /dev/hda
+ eval 'args=${hda_args}'
++ args='-A1 -X70 -d1 -u1 -m16 -a64'
+ do_hdparm
+ [[ -n -A1 -X70 -d1 -u1 -m16 -a64 ]]
++ readlink -f /dev/hda
+ local orgdevice=/dev/hda
+ [[ -b /dev/hda ]]
+ ebegin 'Running hdparm on /dev/hda'
+ local 'msg=Running hdparm on /dev/hda' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hda ...'
+ einfon 'Running hdparm on /dev/hda ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hda ...'
  * Running hdparm on /dev/hda ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -A1 -X70 -d1 -u1 -m16 -a64 /dev/hda
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg=
+ status=0
+ [[ -b /dev/hdb ]]
+ [[ 0 == 0 ]]
++ basename /dev/hdb
+ eval 'args=${hdb_args}'
++ args='-A1 -X69 -d1 -u1 -m16 -a64'
+ do_hdparm
+ [[ -n -A1 -X69 -d1 -u1 -m16 -a64 ]]
++ readlink -f /dev/hdb
+ local orgdevice=/dev/hdb
+ [[ -b /dev/hdb ]]
+ ebegin 'Running hdparm on /dev/hdb'
+ local 'msg=Running hdparm on /dev/hdb' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdb ...'
+ einfon 'Running hdparm on /dev/hdb ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdb ...'
  * Running hdparm on /dev/hdb ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -A1 -X69 -d1 -u1 -m16 -a64 /dev/hdb
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg='/etc/init.d/hdparm: line 122: /dev/hdc: No medium found'
+ status=1
+ [[ -b /dev/hdc ]]
+ [[ 1 == 0 ]]
+ [[ /etc/init.d/hdparm: line 122: /dev/hdc: No medium found == *\:\ 
\N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
++ basename /dev/hdc
+ eval 'args=${hdc_args}'
++ args='-d1 -u1 -a256 -E8'
+ do_hdparm
+ [[ -n -d1 -u1 -a256 -E8 ]]
++ readlink -f /dev/hdc
+ local orgdevice=/dev/hdc
+ [[ -b /dev/hdc ]]
+ ebegin 'Running hdparm on /dev/hdc'
+ local 'msg=Running hdparm on /dev/hdc' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdc ...'
+ einfon 'Running hdparm on /dev/hdc ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdc ...'
  * Running hdparm on /dev/hdc ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -d1 -u1 -a256 -E8 /dev/hdc
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg='/etc/init.d/hdparm: line 122: /dev/hdd: No medium found'
+ status=1
+ [[ -b /dev/hdd ]]
+ [[ 1 == 0 ]]
+ [[ /etc/init.d/hdparm: line 122: /dev/hdd: No medium found == *\:\ 
\N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
++ basename /dev/hdd
+ eval 'args=${hdd_args}'
++ args='-d1 -u1 -a256 -E8'
+ do_hdparm
+ [[ -n -d1 -u1 -a256 -E8 ]]
++ readlink -f /dev/hdd
+ local orgdevice=/dev/hdd
+ [[ -b /dev/hdd ]]
+ ebegin 'Running hdparm on /dev/hdd'
+ local 'msg=Running hdparm on /dev/hdd' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdd ...'
+ einfon 'Running hdparm on /dev/hdd ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdd ...'
  * Running hdparm on /dev/hdd ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -d1 -u1 -a256 -E8 /dev/hdd
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ retval=0
+ [[ 0 == \0 ]]
+ service_inactive hdparm
+ test_service_state hdparm inactive
+ [[ -z hdparm ]]
+ [[ -z inactive ]]
+ local f=/var/lib/init.d/inactive/hdparm
+ [[ -L /var/lib/init.d/inactive/hdparm ]]
+ [[ ! -e /var/lib/init.d/inactive/hdparm ]]
+ rm -f /var/lib/init.d/inactive/hdparm
+ return 1
+ [[ 0 != \0 ]]
+ svcstarted=0
+ mark_service_started hdparm
+ [[ -z hdparm ]]
+ ln -snf /etc/init.d/hdparm /var/lib/init.d/started/hdparm
+ rm -f /var/lib/init.d/starting/hdparm /var/lib/init.d/inactive/hdparm 
/var/lib/init.d/wasinactive/hdparm /var/lib/init.d/stopping/hdparm 
'/var/lib/init.d/scheduled/*/hdparm'
+ return 0
+ service_message 'Service hdparm started'
+ [[ no != \y\e\s ]]
+ return
+ svc_trap
+ trap 'eerror "ERROR:  ${SVCNAME} caught an interrupt"; exit 1' INT 
QUIT TSTP
+ return 0
+ retval=0
+ service_started hdparm
+ test_service_state hdparm started
+ [[ -z hdparm ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/hdparm
+ [[ -L /var/lib/init.d/started/hdparm ]]
+ return 0
+ svc_start_scheduled
+ [[ ! -d /var/lib/init.d/scheduled/hdparm ]]
+ return
+ exit 0
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 19:46         ` Richard Fish
  2006-08-18 20:10           ` Daniel Pielmeier
@ 2006-08-18 20:21           ` Daniel Pielmeier
  2006-08-18 20:29             ` Richard Fish
  1 sibling, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 20:21 UTC (permalink / raw
  To: gentoo-user

after i took a more cleary look at the messages i found out that hdparm 
did not work on boot up and when i try to start/stop the init-script by 
using sudo, but when i log in as root and run the script it shows me:

/etc/init.d/hdparm start
* Running hdparm on /dev/hda ... [ ok ]
* Running hdparm on /dev/hdb ... [ ok ]
* Running hdparm on /dev/hdc ... [ ok ]
* Running hdparm on /dev/hdd ... [ ok ]

what could be the reason for this?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 20:21           ` Daniel Pielmeier
@ 2006-08-18 20:29             ` Richard Fish
  2006-08-18 20:44               ` Daniel Pielmeier
  0 siblings, 1 reply; 22+ messages in thread
From: Richard Fish @ 2006-08-18 20:29 UTC (permalink / raw
  To: gentoo-user

On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
> after i took a more cleary look at the messages i found out that hdparm
> did not work on boot up and when i try to start/stop the init-script by
> using sudo, but when i log in as root and run the script it shows me:
>
> /etc/init.d/hdparm start
> * Running hdparm on /dev/hda ... [ ok ]
> * Running hdparm on /dev/hdb ... [ ok ]
> * Running hdparm on /dev/hdc ... [ ok ]
> * Running hdparm on /dev/hdd ... [ ok ]
>
> what could be the reason for this?

Are you starting hdparm in the boot or default runlevel (rc-update
-s)?  If at boot, it may be that some modules haven't been loaded yet,
so you don't actually have hdc/hdd.

-Richard


> --
> gentoo-user@gentoo.org mailing list
>
>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 20:10           ` Daniel Pielmeier
@ 2006-08-18 20:30             ` Richard Fish
  0 siblings, 0 replies; 22+ messages in thread
From: Richard Fish @ 2006-08-18 20:30 UTC (permalink / raw
  To: gentoo-user

On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
> For /dev/hdc and /dev/hdd it says that there is no medium present, but
> is this required for running hdparm on this devices?

No, the init script handles this case...in fact it did run hdparm for
hdc and hdd.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 20:29             ` Richard Fish
@ 2006-08-18 20:44               ` Daniel Pielmeier
  2006-08-18 21:13                 ` Richard Fish
  0 siblings, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 20:44 UTC (permalink / raw
  To: gentoo-user

Richard Fish schrieb:
> Are you starting hdparm in the boot or default runlevel (rc-update
> -s)?  If at boot, it may be that some modules haven't been loaded yet,
> so you don't actually have hdc/hdd.

it starts in default runlevel, but i think with the new baselayout it 
starts ealier then before.

for the tests i have done before i did not reboot, so i think eyery 
modules are already started.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 20:44               ` Daniel Pielmeier
@ 2006-08-18 21:13                 ` Richard Fish
  2006-08-18 21:26                   ` Daniel Pielmeier
  2006-08-18 21:32                   ` Daniel Pielmeier
  0 siblings, 2 replies; 22+ messages in thread
From: Richard Fish @ 2006-08-18 21:13 UTC (permalink / raw
  To: gentoo-user

On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
> Richard Fish schrieb:
> > Are you starting hdparm in the boot or default runlevel (rc-update
> > -s)?  If at boot, it may be that some modules haven't been loaded yet,
> > so you don't actually have hdc/hdd.
>
> it starts in default runlevel, but i think with the new baselayout it
> starts ealier then before.

Hmm, possible.  I just noticed that it has a "before bootmisc"
dependancy, so it is going to start very early on.  In fact, bootmisc
is considered a "CRITICAL_SERVICE" by /sbin/rc, so that means hdparm
is going to start at the same time as filesystems are mounted and
modules are loaded.  I don't know if previous versions of hdparm had
this same thing or not.

I think you can either file a bug about the dependancy on bootmisc
that causes hdparm to start too early, hack the init script yourself
to remove it, or reconfigure your kernel to include the drivers for
your CD-ROMs statically, not as modules.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:13                 ` Richard Fish
@ 2006-08-18 21:26                   ` Daniel Pielmeier
  2006-08-18 21:41                     ` Richard Fish
  2006-08-18 21:32                   ` Daniel Pielmeier
  1 sibling, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 21:26 UTC (permalink / raw
  To: gentoo-user

> Hmm, possible.  I just noticed that it has a "before bootmisc"
> dependancy, so it is going to start very early on.  In fact, bootmisc
> is considered a "CRITICAL_SERVICE" by /sbin/rc, so that means hdparm
> is going to start at the same time as filesystems are mounted and
> modules are loaded.  I don't know if previous versions of hdparm had
> this same thing or not.
> 
> I think you can either file a bug about the dependancy on bootmisc
> that causes hdparm to start too early, hack the init script yourself
> to remove it, or reconfigure your kernel to include the drivers for
> your CD-ROMs statically, not as modules.

Before i fill a bug i will check if removing the bootmisc dependency 
will solve the problem. I don't think so because when the system has 
booted completely a restart of the service doesn't work either.
The thing that irritates me is, when i run it directly as root it works 
but not on system startup and when using sudo.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:13                 ` Richard Fish
  2006-08-18 21:26                   ` Daniel Pielmeier
@ 2006-08-18 21:32                   ` Daniel Pielmeier
  1 sibling, 0 replies; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 21:32 UTC (permalink / raw
  To: gentoo-user

> Hmm, possible.  I just noticed that it has a "before bootmisc"
> dependancy, so it is going to start very early on.  In fact, bootmisc
> is considered a "CRITICAL_SERVICE" by /sbin/rc, so that means hdparm
> is going to start at the same time as filesystems are mounted and
> modules are loaded.  I don't know if previous versions of hdparm had
> this same thing or not.
> 
> I think you can either file a bug about the dependancy on bootmisc
> that causes hdparm to start too early, hack the init script yourself
> to remove it, or reconfigure your kernel to include the drivers for
> your CD-ROMs statically, not as modules.

i did a quick reboot with removing the bootmisc dependancy, now hdparm 
starts later when it used to be, but there are still no changes in the 
dvd-rom devices
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:26                   ` Daniel Pielmeier
@ 2006-08-18 21:41                     ` Richard Fish
  2006-08-18 21:58                       ` Daniel Pielmeier
                                         ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Richard Fish @ 2006-08-18 21:41 UTC (permalink / raw
  To: gentoo-user

On 8/18/06, Daniel Pielmeier <daniel.pielmeier@googlemail.com> wrote:
> Before i fill a bug i will check if removing the bootmisc dependency
> will solve the problem. I don't think so because when the system has
> booted completely a restart of the service doesn't work either.
> The thing that irritates me is, when i run it directly as root it works
> but not on system startup and when using sudo.

Sorry, I missed the 'doesn't work under sudo' part.

Can you post the output with the set -x option when run under sudo?

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:41                     ` Richard Fish
@ 2006-08-18 21:58                       ` Daniel Pielmeier
  2006-08-18 22:45                         ` Benno Schulenberg
  2006-08-18 22:07                       ` Daniel Pielmeier
  2006-08-19 15:53                       ` Daniel Pielmeier
  2 siblings, 1 reply; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 21:58 UTC (permalink / raw
  To: gentoo-user

> Sorry, I missed the 'doesn't work under sudo' part.
> 
> Can you post the output with the set -x option when run under sudo?

okay here comes something strange

billie@gentoo ~ $ LC_ALL=de_DE.utf8
billie@gentoo ~ $ sudo /etc/init.d/hdparm stop
billie@gentoo ~ $ sudo /etc/init.d/hdparm start
* Running hdparm on /dev/hda ... [ ok ]
* Running hdparm on /dev/hdb ... [ ok ]

billie@gentoo ~ $ LC_ALL=en_US
billie@gentoo ~ $ sudo /etc/init.d/hdparm stop
billie@gentoo ~ $ sudo /etc/init.d/hdparm start
* Running hdparm on /dev/hda ... [ ok ]
* Running hdparm on /dev/hdb ... [ ok ]
* Running hdparm on /dev/hdc ... [ ok ]
* Running hdparm on /dev/hdd ... [ ok ]

it seems when i set the locale to en_US it works when i set it to 
de_DE.utf8 it fails



output with LC_ALL=de_DE.utf8


sudo /etc/init.d/hdparm start
+ [[ -z start stop restart ]]
+ shift
+ [[ 1 -lt 1 ]]
+ for arg in '$*'
+ case "${arg}" in
+ retval=0
+ for arg in '$*'
+ case "${arg}" in
+ svc_start
+ local x= y= retval=0 startinactive=
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ service_started hdparm
+ test_service_state hdparm started
+ [[ -z hdparm ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/hdparm
+ [[ -L /var/lib/init.d/started/hdparm ]]
+ [[ ! -e /var/lib/init.d/started/hdparm ]]
+ rm -f /var/lib/init.d/started/hdparm
+ return 1
+ service_inactive hdparm
+ test_service_state hdparm inactive
+ [[ -z hdparm ]]
+ [[ -z inactive ]]
+ local f=/var/lib/init.d/inactive/hdparm
+ [[ -L /var/lib/init.d/inactive/hdparm ]]
+ [[ ! -e /var/lib/init.d/inactive/hdparm ]]
+ rm -f /var/lib/init.d/inactive/hdparm
+ return 1
+ mark_service_starting hdparm
+ [[ -z hdparm ]]
+ ln -sn /etc/init.d/hdparm /var/lib/init.d/starting/hdparm
+ [[ -f /var/lib/init.d/started/hdparm ]]
+ [[ -f /var/lib/init.d/inactive/hdparm ]]
+ return 0
+ trap svc_quit INT QUIT TSTP
+ service_message 'Service hdparm starting'
+ [[ no != \y\e\s ]]
+ return
+ broken hdparm
+ check_dependency broken hdparm
+ [[ -z broken ]]
+ [[ -z hdparm ]]
+ local x myservice deps
+ [[ hdparm == \-\t ]]
+ myservice=hdparm
+ get_dep_info hdparm
+ [[ -z hdparm ]]
+ local myservice=hdparm
+ [[ hdparm == '' ]]
++ get_service_index hdparm 0
++ [[ -z hdparm ]]
++ [[ -z 0 ]]
++ local x myservice=hdparm index=0
++ [[ -n 0 ]]
++ [[ 0 -gt 0 ]]
++ (( x=1 ))
++ (( x<=49 ))
++ index=10
++ [[ hdparm == \d\b\u\s ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=20
++ [[ hdparm == \e\s\o\u\n\d ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=30
++ [[ hdparm == \f\i\r\e\s\t\a\r\t\e\r ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=40
++ [[ hdparm == \g\p\m ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=50
++ [[ hdparm == \h\a\l\d ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=60
++ [[ hdparm == \n\e\t\.\e\t\h\0 ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=70
++ [[ hdparm == \n\e\t\.\l\o ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=80
++ [[ hdparm == \h\d\p\a\r\m ]]
++ echo 80
++ return 0
+ rc_index=80
+ rc_mtime=1155938159
+ rc_name=hdparm
+ rc_ineed=
+ rc_needsme=
+ rc_iuse=
+ rc_usesme=
+ rc_ibefore='bootmisc local'
+ rc_iafter=checkroot
+ rc_broken=
+ rc_mtime=1155938159
+ return 0
+ deps=rc_broken
+ [[ -z '' ]]
+ return 1
+ local ib_save=
+ unset IN_BACKGROUND
+ [[ 0 == \0 ]]
+ [[ '' != \y\e\s ]]
++ ineed hdparm
++ check_dependency ineed hdparm
++ [[ -z ineed ]]
++ [[ -z hdparm ]]
++ local x myservice deps
++ [[ hdparm == \-\t ]]
++ myservice=hdparm
++ get_dep_info hdparm
++ [[ -z hdparm ]]
++ local myservice=hdparm
++ [[ hdparm == \h\d\p\a\r\m ]]
++ [[ -n 1155938159 ]]
++ return 0
++ deps=rc_ineed
++ [[ -z '' ]]
++ return 1
++ valid_iuse hdparm
++ valid_i use hdparm
++ local mylevel=boot x= valid=
++ [[ use != \a\f\t\e\r ]]
++ [[ use != \u\s\e ]]
++ [[ -f /var/lib/init.d/softlevel ]]
++ mylevel=default
+++ iuse hdparm
+++ check_dependency iuse hdparm
+++ [[ -z iuse ]]
+++ [[ -z hdparm ]]
+++ local x myservice deps
+++ [[ hdparm == \-\t ]]
+++ myservice=hdparm
+++ get_dep_info hdparm
+++ [[ -z hdparm ]]
+++ local myservice=hdparm
+++ [[ hdparm == \h\d\p\a\r\m ]]
+++ [[ -n 1155938159 ]]
+++ return 0
+++ deps=rc_iuse
+++ [[ -z '' ]]
+++ return 1
++ echo ''
++ return 0
+ local 'startupservices= '
+ local netservices=
++ dolisting '/etc/runlevels/boot/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/etc/runlevels/boot/net.*'
++ [[ /etc/runlevels/boot/net.* != 
\/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\b\o\o\t\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /etc/runlevels/boot/net.lo ]]
++ [[ ! -d /etc/runlevels/boot/net.lo ]]
++ [[ -L /etc/runlevels/boot/net.lo ]]
+++ ls /etc/runlevels/boot/net.lo
++ mylist=' /etc/runlevels/boot/net.lo'
++ echo ' /etc/runlevels/boot/net.lo'
++ dolisting '/etc/runlevels/default/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/etc/runlevels/default/net.*'
++ [[ /etc/runlevels/default/net.* != 
\/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\d\e\f\a\u\l\t\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /etc/runlevels/default/net.eth0 ]]
++ [[ ! -d /etc/runlevels/default/net.eth0 ]]
++ [[ -L /etc/runlevels/default/net.eth0 ]]
+++ ls /etc/runlevels/default/net.eth0
++ mylist=' /etc/runlevels/default/net.eth0'
++ echo ' /etc/runlevels/default/net.eth0'
++ dolisting '/var/lib/init.d/coldplugged/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/var/lib/init.d/coldplugged/net.*'
++ [[ /var/lib/init.d/coldplugged/net.* != 
\/\v\a\r\/\l\i\b\/\i\n\i\t\.\d\/\c\o\l\d\p\l\u\g\g\e\d\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /var/lib/init.d/coldplugged/net.* ]]
++ continue
++ echo ''
+ for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")' 
'$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting 
"/var/lib/init.d/coldplugged/net.*")'
+ netservices=' net.lo'
+ for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")' 
'$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting 
"/var/lib/init.d/coldplugged/net.*")'
+ netservices=' net.lo net.eth0'
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ [[     == *\ \n\e\t\ * ]]
+ [[ -n '' ]]
+ [[ 0 == \0 ]]
+ IN_BACKGROUND=
+ [[ -n '' ]]
+ [[ no == \y\e\s ]]
+ start
+ '[' -e /dev/.devfs ']'
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg=
+ status=0
+ [[ -b /dev/hda ]]
+ [[ 0 == 0 ]]
++ basename /dev/hda
+ eval 'args=${hda_args}'
++ args='-A1 -X70 -d1 -u1 -m16 -a64'
+ do_hdparm
+ [[ -n -A1 -X70 -d1 -u1 -m16 -a64 ]]
++ readlink -f /dev/hda
+ local orgdevice=/dev/hda
+ [[ -b /dev/hda ]]
+ ebegin 'Running hdparm on /dev/hda'
+ local 'msg=Running hdparm on /dev/hda' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hda ...'
+ einfon 'Running hdparm on /dev/hda ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hda ...'
  * Running hdparm on /dev/hda ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -A1 -X70 -d1 -u1 -m16 -a64 /dev/hda
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg=
+ status=0
+ [[ -b /dev/hdb ]]
+ [[ 0 == 0 ]]
++ basename /dev/hdb
+ eval 'args=${hdb_args}'
++ args='-A1 -X69 -d1 -u1 -m16 -a64'
+ do_hdparm
+ [[ -n -A1 -X69 -d1 -u1 -m16 -a64 ]]
++ readlink -f /dev/hdb
+ local orgdevice=/dev/hdb
+ [[ -b /dev/hdb ]]
+ ebegin 'Running hdparm on /dev/hdb'
+ local 'msg=Running hdparm on /dev/hdb' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdb ...'
+ einfon 'Running hdparm on /dev/hdb ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdb ...'
  * Running hdparm on /dev/hdb ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -A1 -X69 -d1 -u1 -m16 -a64 /dev/hdb
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg='/etc/init.d/hdparm: line 122: /dev/hdc: Kein Medium gefunden'
+ status=1
+ [[ -b /dev/hdc ]]
+ [[ 1 == 0 ]]
+ [[ /etc/init.d/hdparm: line 122: /dev/hdc: Kein Medium gefunden == 
*\:\ \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg='/etc/init.d/hdparm: line 122: /dev/hdd: Kein Medium gefunden'
+ status=1
+ [[ -b /dev/hdd ]]
+ [[ 1 == 0 ]]
+ [[ /etc/init.d/hdparm: line 122: /dev/hdd: Kein Medium gefunden == 
*\:\ \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
+ retval=0
+ [[ 0 == \0 ]]
+ service_inactive hdparm
+ test_service_state hdparm inactive
+ [[ -z hdparm ]]
+ [[ -z inactive ]]
+ local f=/var/lib/init.d/inactive/hdparm
+ [[ -L /var/lib/init.d/inactive/hdparm ]]
+ [[ ! -e /var/lib/init.d/inactive/hdparm ]]
+ rm -f /var/lib/init.d/inactive/hdparm
+ return 1
+ [[ 0 != \0 ]]
+ svcstarted=0
+ mark_service_started hdparm
+ [[ -z hdparm ]]
+ ln -snf /etc/init.d/hdparm /var/lib/init.d/started/hdparm
+ rm -f /var/lib/init.d/starting/hdparm /var/lib/init.d/inactive/hdparm 
/var/lib/init.d/wasinactive/hdparm /var/lib/init.d/stopping/hdparm 
'/var/lib/init.d/scheduled/*/hdparm'
+ return 0
+ service_message 'Service hdparm started'
+ [[ no != \y\e\s ]]
+ return
+ svc_trap
+ trap 'eerror "ERROR:  ${SVCNAME} caught an interrupt"; exit 1' INT 
QUIT TSTP
+ return 0
+ retval=0
+ service_started hdparm
+ test_service_state hdparm started
+ [[ -z hdparm ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/hdparm
+ [[ -L /var/lib/init.d/started/hdparm ]]
+ return 0
+ svc_start_scheduled
+ [[ ! -d /var/lib/init.d/scheduled/hdparm ]]
+ return
+ exit 0



output with LC_ALL=en_US


sudo /etc/init.d/hdparm start
+ [[ -z start stop restart ]]
+ shift
+ [[ 1 -lt 1 ]]
+ for arg in '$*'
+ case "${arg}" in
+ retval=0
+ for arg in '$*'
+ case "${arg}" in
+ svc_start
+ local x= y= retval=0 startinactive=
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ service_started hdparm
+ test_service_state hdparm started
+ [[ -z hdparm ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/hdparm
+ [[ -L /var/lib/init.d/started/hdparm ]]
+ [[ ! -e /var/lib/init.d/started/hdparm ]]
+ rm -f /var/lib/init.d/started/hdparm
+ return 1
+ service_inactive hdparm
+ test_service_state hdparm inactive
+ [[ -z hdparm ]]
+ [[ -z inactive ]]
+ local f=/var/lib/init.d/inactive/hdparm
+ [[ -L /var/lib/init.d/inactive/hdparm ]]
+ [[ ! -e /var/lib/init.d/inactive/hdparm ]]
+ rm -f /var/lib/init.d/inactive/hdparm
+ return 1
+ mark_service_starting hdparm
+ [[ -z hdparm ]]
+ ln -sn /etc/init.d/hdparm /var/lib/init.d/starting/hdparm
+ [[ -f /var/lib/init.d/started/hdparm ]]
+ [[ -f /var/lib/init.d/inactive/hdparm ]]
+ return 0
+ trap svc_quit INT QUIT TSTP
+ service_message 'Service hdparm starting'
+ [[ no != \y\e\s ]]
+ return
+ broken hdparm
+ check_dependency broken hdparm
+ [[ -z broken ]]
+ [[ -z hdparm ]]
+ local x myservice deps
+ [[ hdparm == \-\t ]]
+ myservice=hdparm
+ get_dep_info hdparm
+ [[ -z hdparm ]]
+ local myservice=hdparm
+ [[ hdparm == '' ]]
++ get_service_index hdparm 0
++ [[ -z hdparm ]]
++ [[ -z 0 ]]
++ local x myservice=hdparm index=0
++ [[ -n 0 ]]
++ [[ 0 -gt 0 ]]
++ (( x=1 ))
++ (( x<=49 ))
++ index=10
++ [[ hdparm == \d\b\u\s ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=20
++ [[ hdparm == \e\s\o\u\n\d ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=30
++ [[ hdparm == \f\i\r\e\s\t\a\r\t\e\r ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=40
++ [[ hdparm == \g\p\m ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=50
++ [[ hdparm == \h\a\l\d ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=60
++ [[ hdparm == \n\e\t\.\e\t\h\0 ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=70
++ [[ hdparm == \n\e\t\.\l\o ]]
++ (( x++  ))
++ (( x<=49 ))
++ index=80
++ [[ hdparm == \h\d\p\a\r\m ]]
++ echo 80
++ return 0
+ rc_index=80
+ rc_mtime=1155938159
+ rc_name=hdparm
+ rc_ineed=
+ rc_needsme=
+ rc_iuse=
+ rc_usesme=
+ rc_ibefore='bootmisc local'
+ rc_iafter=checkroot
+ rc_broken=
+ rc_mtime=1155938159
+ return 0
+ deps=rc_broken
+ [[ -z '' ]]
+ return 1
+ local ib_save=
+ unset IN_BACKGROUND
+ [[ 0 == \0 ]]
+ [[ '' != \y\e\s ]]
++ ineed hdparm
++ check_dependency ineed hdparm
++ [[ -z ineed ]]
++ [[ -z hdparm ]]
++ local x myservice deps
++ [[ hdparm == \-\t ]]
++ myservice=hdparm
++ get_dep_info hdparm
++ [[ -z hdparm ]]
++ local myservice=hdparm
++ [[ hdparm == \h\d\p\a\r\m ]]
++ [[ -n 1155938159 ]]
++ return 0
++ deps=rc_ineed
++ [[ -z '' ]]
++ return 1
++ valid_iuse hdparm
++ valid_i use hdparm
++ local mylevel=boot x= valid=
++ [[ use != \a\f\t\e\r ]]
++ [[ use != \u\s\e ]]
++ [[ -f /var/lib/init.d/softlevel ]]
++ mylevel=default
+++ iuse hdparm
+++ check_dependency iuse hdparm
+++ [[ -z iuse ]]
+++ [[ -z hdparm ]]
+++ local x myservice deps
+++ [[ hdparm == \-\t ]]
+++ myservice=hdparm
+++ get_dep_info hdparm
+++ [[ -z hdparm ]]
+++ local myservice=hdparm
+++ [[ hdparm == \h\d\p\a\r\m ]]
+++ [[ -n 1155938159 ]]
+++ return 0
+++ deps=rc_iuse
+++ [[ -z '' ]]
+++ return 1
++ echo ''
++ return 0
+ local 'startupservices= '
+ local netservices=
++ dolisting '/etc/runlevels/boot/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/etc/runlevels/boot/net.*'
++ [[ /etc/runlevels/boot/net.* != 
\/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\b\o\o\t\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /etc/runlevels/boot/net.lo ]]
++ [[ ! -d /etc/runlevels/boot/net.lo ]]
++ [[ -L /etc/runlevels/boot/net.lo ]]
+++ ls /etc/runlevels/boot/net.lo
++ mylist=' /etc/runlevels/boot/net.lo'
++ echo ' /etc/runlevels/boot/net.lo'
++ dolisting '/etc/runlevels/default/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/etc/runlevels/default/net.*'
++ [[ /etc/runlevels/default/net.* != 
\/\e\t\c\/\r\u\n\l\e\v\e\l\s\/\d\e\f\a\u\l\t\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /etc/runlevels/default/net.eth0 ]]
++ [[ ! -d /etc/runlevels/default/net.eth0 ]]
++ [[ -L /etc/runlevels/default/net.eth0 ]]
+++ ls /etc/runlevels/default/net.eth0
++ mylist=' /etc/runlevels/default/net.eth0'
++ echo ' /etc/runlevels/default/net.eth0'
++ dolisting '/var/lib/init.d/coldplugged/net.*'
++ local x=
++ local y=
++ local tmpstr=
++ local mylist=
++ local 'mypath=/var/lib/init.d/coldplugged/net.*'
++ [[ /var/lib/init.d/coldplugged/net.* != 
\/\v\a\r\/\l\i\b\/\i\n\i\t\.\d\/\c\o\l\d\p\l\u\g\g\e\d\/\n\e\t\.\* ]]
++ for x in '${mypath}'
++ [[ ! -e /var/lib/init.d/coldplugged/net.* ]]
++ continue
++ echo ''
+ for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")' 
'$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting 
"/var/lib/init.d/coldplugged/net.*")'
+ netservices=' net.lo'
+ for x in '$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*")' 
'$(dolisting "/etc/runlevels/${mylevel}/net.*")' '$(dolisting 
"/var/lib/init.d/coldplugged/net.*")'
+ netservices=' net.lo net.eth0'
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ is_runlevel_start
+ [[ -d /var/lib/init.d/softscripts.old ]]
+ [[     == *\ \n\e\t\ * ]]
+ [[ -n '' ]]
+ [[ 0 == \0 ]]
+ IN_BACKGROUND=
+ [[ -n '' ]]
+ [[ no == \y\e\s ]]
+ start
+ '[' -e /dev/.devfs ']'
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg=
+ status=0
+ [[ -b /dev/hda ]]
+ [[ 0 == 0 ]]
++ basename /dev/hda
+ eval 'args=${hda_args}'
++ args='-A1 -X70 -d1 -u1 -m16 -a64'
+ do_hdparm
+ [[ -n -A1 -X70 -d1 -u1 -m16 -a64 ]]
++ readlink -f /dev/hda
+ local orgdevice=/dev/hda
+ [[ -b /dev/hda ]]
+ ebegin 'Running hdparm on /dev/hda'
+ local 'msg=Running hdparm on /dev/hda' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hda ...'
+ einfon 'Running hdparm on /dev/hda ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hda ...'
  * Running hdparm on /dev/hda ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -A1 -X70 -d1 -u1 -m16 -a64 /dev/hda
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg=
+ status=0
+ [[ -b /dev/hdb ]]
+ [[ 0 == 0 ]]
++ basename /dev/hdb
+ eval 'args=${hdb_args}'
++ args='-A1 -X69 -d1 -u1 -m16 -a64'
+ do_hdparm
+ [[ -n -A1 -X69 -d1 -u1 -m16 -a64 ]]
++ readlink -f /dev/hdb
+ local orgdevice=/dev/hdb
+ [[ -b /dev/hdb ]]
+ ebegin 'Running hdparm on /dev/hdb'
+ local 'msg=Running hdparm on /dev/hdb' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdb ...'
+ einfon 'Running hdparm on /dev/hdb ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdb ...'
  * Running hdparm on /dev/hdb ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -A1 -X69 -d1 -u1 -m16 -a64 /dev/hdb
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg='/etc/init.d/hdparm: line 122: /dev/hdc: No medium found'
+ status=1
+ [[ -b /dev/hdc ]]
+ [[ 1 == 0 ]]
+ [[ /etc/init.d/hdparm: line 122: /dev/hdc: No medium found == *\:\ 
\N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
++ basename /dev/hdc
+ eval 'args=${hdc_args}'
++ args='-d1 -u1 -a256 -E8'
+ do_hdparm
+ [[ -n -d1 -u1 -a256 -E8 ]]
++ readlink -f /dev/hdc
+ local orgdevice=/dev/hdc
+ [[ -b /dev/hdc ]]
+ ebegin 'Running hdparm on /dev/hdc'
+ local 'msg=Running hdparm on /dev/hdc' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdc ...'
+ einfon 'Running hdparm on /dev/hdc ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdc ...'
  * Running hdparm on /dev/hdc ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -d1 -u1 -a256 -E8 /dev/hdc
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ for device in '/dev/hd?'
+ local errmsg status
++ :
+ errmsg='/etc/init.d/hdparm: line 122: /dev/hdd: No medium found'
+ status=1
+ [[ -b /dev/hdd ]]
+ [[ 1 == 0 ]]
+ [[ /etc/init.d/hdparm: line 122: /dev/hdd: No medium found == *\:\ 
\N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
++ basename /dev/hdd
+ eval 'args=${hdd_args}'
++ args='-d1 -u1 -a256 -E8'
+ do_hdparm
+ [[ -n -d1 -u1 -a256 -E8 ]]
++ readlink -f /dev/hdd
+ local orgdevice=/dev/hdd
+ [[ -b /dev/hdd ]]
+ ebegin 'Running hdparm on /dev/hdd'
+ local 'msg=Running hdparm on /dev/hdd' dots spaces=
+ [[ no == \y\e\s ]]
+ [[ -n '' ]]
+ msg='Running hdparm on /dev/hdd ...'
+ einfon 'Running hdparm on /dev/hdd ...'
+ [[ no == \y\e\s ]]
+ [[ yes != \y\e\s ]]
+ echo -ne ' * Running hdparm on /dev/hdd ...'
  * Running hdparm on /dev/hdd ...+ LAST_E_CMD=einfon
+ return 0
+ [[ yes == \y\e\s ]]
+ echo

+ LAST_E_LEN=33
+ LAST_E_CMD=ebegin
+ return 0
+ hdparm -d1 -u1 -a256 -E8 /dev/hdd
+ eend 0
+ local retval=0
+ shift
+ _eend 0 eerror ''
+ local retval=0 efunc=eerror msg
+ shift 2
+ [[ 0 == \0 ]]
+ [[ no == \y\e\s ]]
+ msg='[ ok ]'
+ [[ yes == \y\e\s ]]  [ ok ]'e ' 
 
                               [ ok ]+ return 0
+ LAST_E_CMD=eend
+ return 0
+ retval=0
+ [[ 0 == \0 ]]
+ service_inactive hdparm
+ test_service_state hdparm inactive
+ [[ -z hdparm ]]
+ [[ -z inactive ]]
+ local f=/var/lib/init.d/inactive/hdparm
+ [[ -L /var/lib/init.d/inactive/hdparm ]]
+ [[ ! -e /var/lib/init.d/inactive/hdparm ]]
+ rm -f /var/lib/init.d/inactive/hdparm
+ return 1
+ [[ 0 != \0 ]]
+ svcstarted=0
+ mark_service_started hdparm
+ [[ -z hdparm ]]
+ ln -snf /etc/init.d/hdparm /var/lib/init.d/started/hdparm
+ rm -f /var/lib/init.d/starting/hdparm /var/lib/init.d/inactive/hdparm 
/var/lib/init.d/wasinactive/hdparm /var/lib/init.d/stopping/hdparm 
'/var/lib/init.d/scheduled/*/hdparm'
+ return 0
+ service_message 'Service hdparm started'
+ [[ no != \y\e\s ]]
+ return
+ svc_trap
+ trap 'eerror "ERROR:  ${SVCNAME} caught an interrupt"; exit 1' INT 
QUIT TSTP
+ return 0
+ retval=0
+ service_started hdparm
+ test_service_state hdparm started
+ [[ -z hdparm ]]
+ [[ -z started ]]
+ local f=/var/lib/init.d/started/hdparm
+ [[ -L /var/lib/init.d/started/hdparm ]]
+ return 0
+ svc_start_scheduled
+ [[ ! -d /var/lib/init.d/scheduled/hdparm ]]
+ return
+ exit 0
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:41                     ` Richard Fish
  2006-08-18 21:58                       ` Daniel Pielmeier
@ 2006-08-18 22:07                       ` Daniel Pielmeier
  2006-08-19 15:53                       ` Daniel Pielmeier
  2 siblings, 0 replies; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-18 22:07 UTC (permalink / raw
  To: gentoo-user

so i think it is not a problem between sudo and root, for root my 
default locale is en_US for me as normal user it is de_DE.utf8 so it 
seems to be a problem with the locales
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:58                       ` Daniel Pielmeier
@ 2006-08-18 22:45                         ` Benno Schulenberg
  2006-08-19 12:23                           ` Daniel Pielmeier
  0 siblings, 1 reply; 22+ messages in thread
From: Benno Schulenberg @ 2006-08-18 22:45 UTC (permalink / raw
  To: gentoo-user

Daniel Pielmeier wrote:
> + [[ /etc/init.d/hdparm: line 122: /dev/hdc: Kein Medium gefunden
> == *\:\ \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]
> [...]
> + [[ /etc/init.d/hdparm: line 122: /dev/hdd: Kein Medium gefunden
> == *\:\ \N\o\ \m\e\d\i\u\m\ \f\o\u\n\d ]]

It is specifically checking for the "No medium found" message.  To 
be able to do that, the hdparm script should set LC_ALL=C itself.  
Time to report a bug.

Benno

-- 
Cetere mi opinias ke ne ĉio tradukenda estas.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 22:45                         ` Benno Schulenberg
@ 2006-08-19 12:23                           ` Daniel Pielmeier
  0 siblings, 0 replies; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-19 12:23 UTC (permalink / raw
  To: gentoo-user

Benno Schulenberg schrieb:
> It is specifically checking for the "No medium found" message.  To 
> be able to do that, the hdparm script should set LC_ALL=C itself.  
> Time to report a bug.

okay it's here:

http://bugs.gentoo.org/show_bug.cgi?id=144407
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: hdparm and baselayout
  2006-08-18 21:41                     ` Richard Fish
  2006-08-18 21:58                       ` Daniel Pielmeier
  2006-08-18 22:07                       ` Daniel Pielmeier
@ 2006-08-19 15:53                       ` Daniel Pielmeier
  2 siblings, 0 replies; 22+ messages in thread
From: Daniel Pielmeier @ 2006-08-19 15:53 UTC (permalink / raw
  To: gentoo-user

Thanks to all who helped me with this issue, especially Richard who lead 
me to this bug.

Daniel
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2006-08-19 16:00 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-17 19:23 [gentoo-user] hdparm and baselayout Daniel Pielmeier
2006-08-18 12:09 ` [gentoo-user] " Daniel Pielmeier
2006-08-18 13:13   ` Andrew Frink
2006-08-18 16:03     ` Dale
2006-08-18 18:50       ` Daniel Pielmeier
2006-08-18 19:04         ` Dale
2006-08-18 19:16           ` Daniel Pielmeier
2006-08-18 19:46         ` Richard Fish
2006-08-18 20:10           ` Daniel Pielmeier
2006-08-18 20:30             ` Richard Fish
2006-08-18 20:21           ` Daniel Pielmeier
2006-08-18 20:29             ` Richard Fish
2006-08-18 20:44               ` Daniel Pielmeier
2006-08-18 21:13                 ` Richard Fish
2006-08-18 21:26                   ` Daniel Pielmeier
2006-08-18 21:41                     ` Richard Fish
2006-08-18 21:58                       ` Daniel Pielmeier
2006-08-18 22:45                         ` Benno Schulenberg
2006-08-19 12:23                           ` Daniel Pielmeier
2006-08-18 22:07                       ` Daniel Pielmeier
2006-08-19 15:53                       ` Daniel Pielmeier
2006-08-18 21:32                   ` Daniel Pielmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox