]> git.pld-linux.org Git - packages/hdparm.git/blobdiff - hdparm.init
- removed egrep (replaced by awk conditional expression)
[packages/hdparm.git] / hdparm.init
index 3e943615756f5cf3e151aa4f0c172a9567283ccb..9831fd4a3dcbfdf41a319d7b3298707d20a9e7b7 100644 (file)
@@ -6,7 +6,7 @@
 # Get service config
 [ -f /etc/sysconfig/hdparm ] && . /etc/sysconfig/hdparm
 
-DRIVES=`awk '{ print $NF }' /proc/partitions | egrep -v -e"md|name"`
+DRIVES="`awk '!($NF ~ /md|name/) { print $NF }' /proc/partitions`"
 for drive in $DRIVES; do
        eval PARAMS=\${HDPARM_${drive}}
        if [ -n "${PARAMS}" ] ; then
This page took 0.111573 seconds and 4 git commands to generate.