From 123e24a3b510d70a5548d39d5b90de26fd1ba7fa Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 27 May 2010 14:34:02 +0200 Subject: [PATCH] multipath: remove multipath udev rules, if no multipath.conf was found --- modules.d/90multipath/multipathd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules.d/90multipath/multipathd.sh b/modules.d/90multipath/multipathd.sh index 851c08e..e26ab84 100755 --- a/modules.d/90multipath/multipathd.sh +++ b/modules.d/90multipath/multipathd.sh @@ -1,7 +1,9 @@ #!/bin/sh if [ -e /etc/multipath.conf ]; then - modprobe dm-multipath - multipathd + modprobe dm-multipath + multipathd +else + rm /etc/udev/rules.d/??-multipath.rules 2>/dev/null fi -- 2.7.4