]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- handle device-mapper too
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 23 Nov 2006 14:29:14 +0000 (14:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-blockdev.init -> 1.7

util-linux-blockdev.init

index 763e7e96ec08cb85a3be90f6ba1ff934e25bdf85..4193af3e8d9f662a0594cf418a3a81ff9e950c88 100644 (file)
@@ -17,8 +17,8 @@
 
 start() {
        if [ ! -f /var/lock/subsys/blockdev ]; then
-               for drive in $(ls /sys/block 2> /dev/null); do
-                       if [ -d "/sys/block/${drive}" -a -e "/dev/${drive}" ]; then
+               for drive in $(ls /sys/block 2> /dev/null; ls /dev/mapper 2> /dev/null); do
+                       if [ -e "/dev/${drive}" ]; then
                                eval PARAMS=\$BLOCKDEV_$(echo $drive | tr - _)
                                if [ -n "${PARAMS}" ]; then
                                        show "Setting parameters for block drive %s (%s)" "$drive" "$PARAMS"
This page took 0.224115 seconds and 4 git commands to generate.