summaryrefslogtreecommitdiffstats
path: root/modules.d/45net-lib/module-setup.sh
blob: ed5e5ede654c9124152a2ac13f79813a92559b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

check() {
    require_binaries ip awk grep || return 1
    return 255
}

depends() {
    echo base
    return 0
}

install() {
    inst_script "$moddir/netroot.sh" "/sbin/netroot"
    inst_simple "$moddir/net-lib.sh" "/lib/net-lib.sh"
    inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"
    inst_hook cmdline 91 "$moddir/dhcp-root.sh"
    inst_multiple ip awk grep
    inst_multiple -o arping arping2
    dracut_need_initqueue
}