]> git.pld-linux.org Git - packages/hdparm.git/blame - hdparm.init
- update to 5.3
[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
3df24779
AM
9for 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
20done
21
18b351a9 22exit 0
This page took 0.114944 seconds and 4 git commands to generate.