mirror of
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
synced 2025-07-24 07:15:31 +03:00
24 lines
399 B
Text
24 lines
399 B
Text
#!/sbin/openrc-run
|
|
|
|
description="Initialize multipath"
|
|
|
|
depend() {
|
|
before checkfs fsck multipathd iscsid lvm
|
|
after modules device-mapper
|
|
}
|
|
|
|
start() {
|
|
ebegin "Loading multipath modules"
|
|
modprobe -aq dm_mod dm-multipath
|
|
eend $?
|
|
|
|
ebegin "Activating multipath devices"
|
|
multipath -v0 >/dev/null
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Deactivating multipath devices"
|
|
multipath -v0 -F >/dev/null
|
|
eend $?
|
|
}
|