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

# This module is deprecated. Modern replacements are NetworkManager keyfiles and
# systemd network files. It must now be explicitly opted in by the user to be
# added to the initrd.

# called by dracut
check() {
    return 255
}

# called by dracut
depends() {
    echo "network"
    return 0
}

# called by dracut
install() {
    inst_binary awk
    inst_hook pre-pivot 85 "$moddir/write-ifcfg.sh"
}