]> git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/00bootchart/module-setup.sh
Factor out all the "type -V" commands
[thirdparty/dracut.git] / modules.d / 00bootchart / 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 [[ "$mount_needs" ]] && return 1
8 require_binaries /sbin/bootchartd || return 1
9 return 255
10 }
11
12 # called by dracut
13 depends() {
14 return 0
15 }
16
17 # called by dracut
18 install() {
19 inst_symlink /init /sbin/init
20 inst_dir /lib/bootchart/tmpfs
21
22 inst_multiple bootchartd bash \
23 /lib/bootchart/bootchart-collector /etc/bootchartd.conf \
24 accton \
25 echo \
26 grep \
27 usleep
28
29 inst /usr/bin/pkill /bin/pkill
30 inst /usr/bin/[ /bin/[
31 }
32