summaryrefslogtreecommitdiffstats
path: root/abs/core/pcmciautils/initcpio-install-pcmcia
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 17:53:32 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 17:53:32 (GMT)
commit25b32097c819d3812d466fde64e141cb1f77443c (patch)
tree9d8bd09b7bbd15ee181effbf19a1ecf3709a5433 /abs/core/pcmciautils/initcpio-install-pcmcia
parent85df93f5e84582cc25ccce73a8bf1cba67475c6f (diff)
downloadlinhes_pkgbuild-25b32097c819d3812d466fde64e141cb1f77443c.zip
linhes_pkgbuild-25b32097c819d3812d466fde64e141cb1f77443c.tar.gz
linhes_pkgbuild-25b32097c819d3812d466fde64e141cb1f77443c.tar.bz2
pcmcia 018
Diffstat (limited to 'abs/core/pcmciautils/initcpio-install-pcmcia')
-rw-r--r--abs/core/pcmciautils/initcpio-install-pcmcia22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core/pcmciautils/initcpio-install-pcmcia b/abs/core/pcmciautils/initcpio-install-pcmcia
new file mode 100644
index 0000000..71052d6
--- /dev/null
+++ b/abs/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: