multipath: remove multipath udev rules, if no multipath.conf was found
parent
dcdf5c8801
commit
123e24a3b5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue