summaryrefslogtreecommitdiffstats
path: root/modules.d/90pcmcia/module-setup.sh
blob: b11e8f1b69566351d8dc7b2a0c2eb587d688163a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

# called by dracut
check() {
    return 0
}

# called by dracut
depends() {
    echo udev-rules
    return 0
}

# called by dracut
installkernel() {
    instmods pcmcia \
        "=drivers/pcmcia"
}

# called by dracut
install() {
    inst_rules 60-pcmcia.rules

    inst_multiple -o \
        "${udevdir}"/pcmcia-socket-startup \
        "${udevdir}"/pcmcia-check-broken-cis

    # Install the hosts local user configurations if enabled.
    if [[ $hostonly ]]; then
        inst_multiple -H -o \
            /etc/pcmcia/config.opts
    fi
}