File: install

package info (click to toggle)
dracut 005-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,368 kB
  • ctags: 207
  • sloc: sh: 6,487; ansic: 192; makefile: 108
file content (32 lines) | stat: -rwxr-xr-x 722 bytes parent folder | download
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
32
#!/bin/bash

if [ -f /etc/multipath.conf ]; then
    inst /etc/multipath.conf
fi

if ldd $(which multipath) 2>/dev/null |grep -q lib64; then
    LIBDIR="/lib64"
else
    LIBDIR="/lib"
fi

for f in  \
    /sbin/dmsetup \
    /sbin/kpartx \
    /sbin/mpath_wait \
    /sbin/multipath  \
    /sbin/multipathd \
    /sbin/xdrgetuid \
    /sbin/xdrgetprio \
    /etc/xdrdevices.conf \
    $(ls $LIBDIR/libmultipath* $LIBDIR/multipath/* 2>/dev/null) \
    	;do
    [ -e "$f" ] && inst "$f"
done

inst_hook pre-trigger 02 "$moddir/multipathd.sh"
inst_hook pre-pivot   02 "$moddir/multipathd-stop.sh"
inst_rules 40-multipath.rules

inst "$moddir/multipath-scan.sh" /sbin/multipath-scan
inst_rules "$moddir/9-multipath-scan.rules"