]> git.pld-linux.org Git - packages/hdparm.git/blobdiff - hdparm.init
- fixes to support non-IDE drives ad single partitions
[packages/hdparm.git] / hdparm.init
index db7ecfab4bb958bfffcb5d1a525d146360298ab0..a7e2fe2e8109b24aaf4c29b3241ecc1cf4ed6aa2 100644 (file)
@@ -19,7 +19,8 @@
 case "$1" in
   start)
        cd /dev
-       for drive in hd? ; do
+       DRIVES=`cut -c 22- < /proc/partitions | egrep -v -e"md|name"`
+       for drive in $DRIVES ; do
          eval PARAMS=\${HDPARM_${drive}}
          if [ -n "${PARAMS}" ] ; then
            show "Setting $drive parameters"
This page took 0.119584 seconds and 4 git commands to generate.