]> git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/95zfcp/module-setup.sh
Factor out all the "type -V" commands
[thirdparty/dracut.git] / modules.d / 95zfcp / module-setup.sh
1 #!/bin/bash
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
4
5 # called by dracut
6 check() {
7 arch=$(uname -m)
8 [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
9
10 require_binaries zfcp_cio_free grep sed seq || return 1
11
12 return 0
13 }
14
15 # called by dracut
16 depends() {
17 return 0
18 }
19
20 # called by dracut
21 installkernel() {
22 instmods zfcp
23 }
24
25 # called by dracut
26 install() {
27 inst_hook cmdline 30 "$moddir/parse-zfcp.sh"
28 inst_multiple zfcp_cio_free grep sed seq
29
30 inst_script /sbin/zfcpconf.sh
31 inst_rules 56-zfcp.rules
32
33 if [[ $hostonly ]]; then
34 inst_simple /etc/zfcp.conf
35 fi
36 }