1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /root/magellan-cvs/src/hdparm/hdparm.rc,v 1.1 2005-10-16 20:40:44 niro Exp $ |
# $Header: /root/magellan-cvs/src/hdparm/hdparm.rc,v 1.4 2008-12-22 22:34:06 niro Exp $ |
3 |
|
|
4 |
#%rlevels: 7:s |
#%rlevels: 7:s |
5 |
#%start: 54 |
#%start: 54 |
10 |
#%before: |
#%before: |
11 |
#%after: |
#%after: |
12 |
|
|
13 |
source /etc/sysconfig/rc |
source /etc/conf.d/rc |
14 |
source $rc_functions |
source $rc_functions |
15 |
|
|
16 |
if [ ! -x /sbin/hdparm ] |
if [ ! -x /sbin/hdparm ] |
31 |
case "${disk}" in |
case "${disk}" in |
32 |
\#*|"") continue ;; |
\#*|"") continue ;; |
33 |
esac |
esac |
34 |
echo -e ${COLOREDSTAR}"Setting hdd params for ${COLBLUE}${disk}${COLDEFAULT} ..." |
echo -e ${COLOREDSTAR}"Setting hdd params ${COLBLUE}'${args}'${COLDEFAULT} for ${COLBLUE}${disk}${COLDEFAULT} ..." |
35 |
hdparm ${args} ${disk} &> /dev/null |
hdparm ${args} ${disk} &> /dev/null |
36 |
evaluate_retval |
evaluate_retval |
37 |
done |
done |