]> git.pld-linux.org Git - packages/hdparm.git/commitdiff
- accept other block devices on Linux 2.6.x (ATA/SATA through libata in particular...
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Jan 2008 22:20:37 +0000 (22:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    hdparm.init -> 1.19

hdparm.init

index 649d11ae7f9f68fd897a700dabbfc88f068aef38..1f6ddb9a24a2b0685e3f06dfc030946b0999d144 100644 (file)
@@ -15,7 +15,7 @@ fi
 
 for var in $blockdevs; do
        drive=${var#HDPARM_}
-       if [ -L "/proc/ide/${drive}" ]; then
+       if [ -L "/proc/ide/${drive}" -o -d "/sys/block/${drive}" ]; then
                eval PARAMS=\$$var
                if [ -n "${PARAMS}" ]; then
                        show "Setting parameters for drive %s (%s)" "$drive" "$PARAMS"
This page took 0.171493 seconds and 4 git commands to generate.