3 # Source function library
4 . /etc/rc.d/init.d/functions
7 [ -f /etc/sysconfig/hdparm ] && . /etc/sysconfig/hdparm
9 for drive in $(ls /proc/ide 2> /dev/null); do
10 if [ -L "/proc/ide/${drive}" ]; then
11 eval PARAMS=\$HDPARM_${drive}
12 if [ -n "${PARAMS}" ] ; then
13 show "Setting parameters for drive %s" "$drive"
15 /sbin/hdparm ${PARAMS} /dev/${drive}