multipath: remove multipath udev rules, if no multipath.conf was found
authorHarald Hoyer <harald@redhat.com>
Thu, 27 May 2010 12:34:02 +0000 (14:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 27 May 2010 12:34:02 +0000 (14:34 +0200)
modules.d/90multipath/multipathd.sh

index 851c08e..e26ab84 100755 (executable)
@@ -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