]> git.pld-linux.org Git - packages/hdparm.git/blame - hdparm.init
- actually rc.hdparm instead of hdparm.init
[packages/hdparm.git] / hdparm.init
CommitLineData
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
0575f91b
SZ
9DRIVES=`cut -c 22- < /proc/partitions | egrep -v -e"md|name"`
10for drive in $DRIVES; do
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
19done
18b351a9 20exit 0
This page took 0.071132 seconds and 4 git commands to generate.