From ab75cd425fb6cdae11f0af6cb35c724ad982f465 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Wed, 18 Jan 2006 19:53:24 +0000 Subject: [PATCH 1/1] - check if /dev/drive exists Changed files: util-linux-blockdev.init -> 1.4 --- util-linux-blockdev.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-linux-blockdev.init b/util-linux-blockdev.init index 1b67449..1655033 100644 --- a/util-linux-blockdev.init +++ b/util-linux-blockdev.init @@ -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" -- 2.44.0