]> git.pld-linux.org Git - packages/hdparm.git/blob - hdparm.init
- typo
[packages/hdparm.git] / hdparm.init
1 #!/bin/sh
2
3 # Source function library
4 . /etc/rc.d/init.d/functions
5
6 # Get service config
7 [ -f /etc/sysconfig/hdparm ] && . /etc/sysconfig/hdparm
8
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 (%s)" "$drive" "$PARAMS"
14                         busy
15                         /sbin/hdparm ${PARAMS} /dev/${drive}
16                         ok
17                 fi
18         fi
19 done
20
21 exit 0
This page took 0.026248 seconds and 3 git commands to generate.