]> git.ipfire.org Git - thirdparty/dracut.git/blame - modules.d/90multipath/multipathd.sh
use "rm --" to guard against filenames beginning with "-"
[thirdparty/dracut.git] / modules.d / 90multipath / multipathd.sh
CommitLineData
978d78f7 1#!/bin/sh
cc02093d
HH
2# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3# ex: ts=8 sw=4 sts=4 et filetype=sh
978d78f7 4
76c4613a 5if [ -e /etc/multipath.conf ]; then
123e24a3 6 modprobe dm-multipath
76c4613a 7 multipathd -B || multipathd
fb67e4aa 8 need_shutdown
123e24a3 9else
32bd2fbb 10 rm -- /etc/udev/rules.d/??-multipath.rules 2>/dev/null
978d78f7
HH
11fi
12