diff options
author | root <root@rshg054.dnsready.net> | 2012-04-07 00:01:17 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-07 00:01:17 +0000 |
commit | 3d65494a8eda056377febda4642ce992e69a9371 (patch) | |
tree | dae57e04ca5f7d7490acbde87206eaa62695109d /core/pcmciautils/initcpio-install-pcmcia | |
parent | d9c1fc1bcca8fd5cd3566fc6b183fe23065778bc (diff) |
Sat Apr 7 00:01:16 UTC 2012
Diffstat (limited to 'core/pcmciautils/initcpio-install-pcmcia')
-rw-r--r-- | core/pcmciautils/initcpio-install-pcmcia | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/pcmciautils/initcpio-install-pcmcia b/core/pcmciautils/initcpio-install-pcmcia new file mode 100644 index 000000000..71052d6b2 --- /dev/null +++ b/core/pcmciautils/initcpio-install-pcmcia @@ -0,0 +1,22 @@ +#!/bin/bash + +build() { + FILES="/etc/pcmcia/config.opts" + MODULES=" $(checked_modules '/drivers/pcmcia/' | grep -ve 'sound' -e 'net') $(checked_modules '/ide/legacy')" + + [[ $MODULES ]] && MODULES+=" sd_mod?" + + add_binary "/usr/lib/udev/pcmcia-socket-startup" + add_binary "/usr/lib/udev/pcmcia-check-broken-cis" + add_file "/usr/lib/udev/rules.d/60-pcmcia.rules" +} + +help() { + cat <<HELPEOF +This hook loads the necessary modules for a pcmcia root device. Detection will +take place at runtime. To minimize the modules in the image, add the autodetect +hook too. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: |