]> git.pld-linux.org Git - packages/hdparm.git/blob - hdparm.init
- cleaning
[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" "$drive"
14                         busy
15                         /sbin/hdparm ${PARAMS} /dev/${drive}
16                         deltext
17                         ok
18                 fi
19         fi
20 done
21
22 exit 0
This page took 0.095175 seconds and 4 git commands to generate.