]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- check if /dev/drive exists auto/ac/util-linux-2_12r-3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 18 Jan 2006 19:53:24 +0000 (19:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-blockdev.init -> 1.4

util-linux-blockdev.init

index 1b67449c77d4a833865544f054de7285e2aaf5bd..1655033903be76e1dda1acf81d8ec1d88a4261c2 100644 (file)
@@ -23,7 +23,7 @@ case "$1" in
        if [ ! -f /var/lock/subsys/blockdev ]; then
 
                for drive in $(ls /sys/block 2> /dev/null); do
-                       if [ -d "/sys/block/${drive}" ]; then
+                       if [ -d "/sys/block/${drive}" -a -e "/dev/${drive}" ]; then
                                eval PARAMS=\$BLOCKDEV_${drive}
                                if [ -n "${PARAMS}" ]; then
                                        show "Setting parameters for block drive %s (%s)" "$drive" "$PARAMS"
This page took 0.161388 seconds and 4 git commands to generate.