aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-15 02:32:47 +0000
committerBill Nottingham <notting@redhat.com>2002-04-15 02:32:47 +0000
commit275d1b787db84bfe45e4ed3f87dba342686e1bdf (patch)
tree0a7da61749a10c980205aa72200a79055081f4a9 /rc.d
parentae70d6cabca88d46a6d3260d2684e64c3ae7b56b (diff)
downloadinitscripts-275d1b787db84bfe45e4ed3f87dba342686e1bdf.tar
initscripts-275d1b787db84bfe45e4ed3f87dba342686e1bdf.tar.gz
initscripts-275d1b787db84bfe45e4ed3f87dba342686e1bdf.tar.bz2
initscripts-275d1b787db84bfe45e4ed3f87dba342686e1bdf.tar.xz
initscripts-275d1b787db84bfe45e4ed3f87dba342686e1bdf.zip
allow tweaking of more devices (#53511)
tweak non-disk devices iff they explicitly have a config file for that device (#56575, #63415)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit16
1 files changed, 11 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index b4367920..c35d1708 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -360,14 +360,20 @@ mount -f /proc
# after installing the hdparm-RPM. If you need different hdparm parameters
# for each of your disks, copy /etc/sysconfig/harddisks to
# /etc/sysconfig/harddiskhda (hdb, hdc...) and modify it.
-# each disk which has no special parameters will use the defaults.
+# Each disk which has no special parameters will use the defaults.
+# Each non-disk which has no special parameters will be ignored.
+#
-disk[0]=s; disk[1]=hda; disk[2]=hdb; disk[3]=hdc;
-disk[4]=hdd; disk[5]=hde; disk[6]=hdf; disk[7]=hdg; disk[8]=hdh;
+disk[0]=s;
+disk[1]=hda; disk[2]=hdb; disk[3]=hdc; disk[4]=hdd;
+disk[5]=hde; disk[6]=hdf; disk[7]=hdg; disk[8]=hdh;
+disk[9]=hde; disk[10]=hdf; disk[11]=hdg; disk[12]=hdh;
+disk[13]=hde; disk[14]=hdf; disk[15]=hdg; disk[16]=hdh;
+disk[17]=hde; disk[18]=hdf; disk[19]=hdg; disk[20]=hdh;
if [ -x /sbin/hdparm ]; then
- for device in 0 1 2 3 4 5 6 7 8; do
+ for device in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
unset MULTIPLE_IO USE_DMA EIDE_32BIT LOOKAHEAD EXTRA_PARAMS
if [ -f /etc/sysconfig/harddisk${disk[$device]} ]; then
. /etc/sysconfig/harddisk${disk[$device]}
@@ -392,7 +398,7 @@ if [ -x /sbin/hdparm ]; then
fi
if [ -e "/proc/ide/${disk[$device]}/media" ] ; then
hdmedia=`cat /proc/ide/${disk[$device]}/media`
- if [ "$hdmedia" = "disk" ]; then
+ if [ "$hdmedia" = "disk" -o -f "/etc/sysconfig/harddisk${disk[$device]}" ]; then
if [ -n "${HDFLAGS[$device]}" ]; then
action $"Setting hard drive parameters for ${disk[$device]}: " /sbin/hdparm ${HDFLAGS[$device]} /dev/${disk[$device]}
fi