[continued from previous message]
+ egrep -v '^[[:space:]]*(#|$)' /etc/hdparm.conf
+ read KEY SEP VALUE
+ '[' '' '!=' go ']'
+ case $SEP in
+ case $KEY in
+ '[' -n '' ']'
+ DEF_QUIET=-q
+ read KEY SEP VALUE
+ echo ' done.'
done.
steve@gashuffer:~$ sh -x /etc/rcS.d/S29hdparm start
+ set -e
+ case $1 in
+ grep -w -q nohdparm /proc/cmdline
+ raidstat=OK
+ '[' -e /proc/mdstat ']'
+ '[' -e /proc/rd/status ']'
+ '[' OK = OK ']'
++ /bin/mount
++ find_root_dev
++ read dev on dir junk
++ '[' -e /dev/hda1 -a / = / ']'
+++ readlink --canonicalize /dev/hda1
++ ROOT_DEV=/dev/hda1
++ echo /dev/hda1
++ break
+ ROOT_DEV=/dev/hda1
+ case $0 in
+ case $ROOT_DEV in
+ ROOT_DEV=/dev/hda
+ echo -n 'Setting disc parameters:'
Setting disc parameters:+ DISC=
+ DEFAULT=
+ OPTIONS=
+ DEF_QUIET=
+ OPT_QUIET=
+ /bin/sync
+ egrep -v '^[[:space:]]*(#|$)' /etc/hdparm.conf
+ read KEY SEP VALUE
+ '[' '' '!=' go ']'
+ case $SEP in
+ case $KEY in
+ '[' -n '' ']'
+ DEF_QUIET=-q
+ read KEY SEP VALUE
+ echo ' done.'
done.
steve@gashuffer:~$ sh -x /etc/rcS.d/S29hdparm start
+ set -e
+ case $1 in
+ grep -w -q nohdparm /proc/cmdline
+ raidstat=OK
+ '[' -e /proc/mdstat ']'
+ '[' -e /proc/rd/status ']'
+ '[' OK = OK ']'
++ /bin/mount
++ find_root_dev
++ read dev on dir junk
++ '[' -e /dev/hda1 -a / = / ']'
+++ readlink --canonicalize /dev/hda1
++ ROOT_DEV=/dev/hda1
++ echo /dev/hda1
++ break
+ ROOT_DEV=/dev/hda1
+ case $0 in
+ case $ROOT_DEV in
+ ROOT_DEV=/dev/hda
+ echo -n 'Setting disc parameters:'
Setting disc parameters:+ DISC=
+ DEFAULT=
+ OPTIONS=
+ DEF_QUIET=
+ OPT_QUIET=
+ /bin/sync
+ egrep -v '^[[:space:]]*(#|$)' /etc/hdparm.conf
+ read KEY SEP VALUE
+ '[' '' '!=' go ']'
+ case $SEP in
+ case $KEY in
+ '[' -n '' ']'
+ DEF_QUIET=-q
+ read KEY SEP VALUE
+ echo ' done.'
done.
At least here, it gets the $ROOT_DEV right both times, and when I put in testing stanzas, it does the right thing (your logic for that is
unchanged).
Thanks again,
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' :
[email protected] |
| `. `' Debian user, admin, and developer |
| `-
http://www.debian.org |
-----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBGuwmSYIMHOpZA44RAn7tAKC9UzJkjHGDAb8PnYTYvSZO/L05XQCgmch0 4xqc1fw0c5s3swDCpc5rbFE=
=hAUF
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)