File: module-setup.sh

package info (click to toggle)
dracut 109-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,756 kB
  • sloc: sh: 24,508; ansic: 5,234; makefile: 346; perl: 186; python: 48; javascript: 19
file content (23 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# This file is part of dracut.
# SPDX-License-Identifier: GPL-2.0-or-later

check() {
    if [[ $hostonly ]]; then
        return 255
    fi

    return 0
}

# called by dracut
install() {
    inst_multiple -o \
        "${udevdir}"/hwdb.bin

    # Install the hosts local user configurations if enabled.
    if [[ $hostonly ]]; then
        inst_multiple -H -o \
            "$udevconfdir"/hwdb.bin
    fi
}