]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- avoid errors for drive=dm-8 (translate minuses to undercores in device name)
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 19 Oct 2006 12:16:21 +0000 (12:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-blockdev.init -> 1.6
    util-linux-blockdev.sysconfig -> 1.2

util-linux-blockdev.init
util-linux-blockdev.sysconfig

index cee0a6cdfa5670f4ba38728d37e1887c37cb62b9..763e7e96ec08cb85a3be90f6ba1ff934e25bdf85 100644 (file)
@@ -19,7 +19,7 @@ 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
-                               eval PARAMS=\$BLOCKDEV_${drive}
+                               eval PARAMS=\$BLOCKDEV_$(echo $drive | tr - _)
                                if [ -n "${PARAMS}" ]; then
                                        show "Setting parameters for block drive %s (%s)" "$drive" "$PARAMS"
                                        busy
index 04c1c87bc3266bbb34f877c4f534733fb5ed722d..11d26bd6431ec842fe9c272910bad82a2013b446 100644 (file)
@@ -1,4 +1,5 @@
-# This file lets you set your block device parameters for better performance
+# This file lets you set your block device parameters for better performance.
+# If device name contains dash (-), then it's translated to underscore (_) here.
 # See blockdev (8) for details.
 
 BLOCKDEV_hda=
This page took 0.120537 seconds and 4 git commands to generate.