]>
Commit | Line | Data |
---|---|---|
18b351a9 | 1 | #!/bin/sh |
3672489f | 2 | |
3 | # Source function library | |
18b351a9 JK |
4 | . /etc/rc.d/init.d/functions |
5 | ||
3672489f | 6 | # Get service config |
7 | [ -f /etc/sysconfig/hdparm ] && . /etc/sysconfig/hdparm | |
18b351a9 | 8 | |
3df24779 AM |
9 | for drive in $(ls /proc/ide 2> /dev/null); do |
10 | if [ -L "/proc/ide/${drive}" ]; then | |
c0a499f5 | 11 | eval PARAMS=\$HDPARM_${drive} |
0575f91b | 12 | if [ -n "${PARAMS}" ] ; then |
3df24779 AM |
13 | show "Setting parameters for drive %s" "$drive" |
14 | busy | |
15 | /sbin/hdparm ${PARAMS} /dev/${drive} | |
16 | deltext | |
17 | ok | |
0575f91b | 18 | fi |
68398249 | 19 | fi |
3df24779 AM |
20 | done |
21 | ||
18b351a9 | 22 | exit 0 |