multipath: remove multipath udev rules, if no multipath.conf was found

master
Harald Hoyer 2010-05-27 14:34:02 +02:00
parent dcdf5c8801
commit 123e24a3b5
1 changed files with 4 additions and 2 deletions

View File

@ -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