]> git.pld-linux.org Git - packages/hdparm.git/blobdiff - hdparm.init
- awk instead of cut (cut is from /usr, which can be not yet mounted)
[packages/hdparm.git] / hdparm.init
index df2db3187f9c21daa095c7b61cf1da7fdffce888..3e943615756f5cf3e151aa4f0c172a9567283ccb 100644 (file)
@@ -6,7 +6,7 @@
 # Get service config
 [ -f /etc/sysconfig/hdparm ] && . /etc/sysconfig/hdparm
 
-DRIVES=`cut -c 22- < /proc/partitions | egrep -v -e"md|name"`
+DRIVES=`awk '{ print $NF }' /proc/partitions | egrep -v -e"md|name"`
 for drive in $DRIVES; do
        eval PARAMS=\${HDPARM_${drive}}
        if [ -n "${PARAMS}" ] ; then
This page took 0.05686 seconds and 4 git commands to generate.