File: multipath_script

package info (click to toggle)
multipath-tools-initramfs 1.0.0
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40 kB
  • ctags: 1
  • sloc: sh: 55; makefile: 45
file content (31 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

# Do the work here.

echo "Loading multipath module"

modprobe dm-multipath

echo "Loading multipath daemon"

/sbin/multipath -v 0

for ASDF in /dev/mapper/*; do kpartx -a $ASDF; done

exit 0