summaryrefslogtreecommitdiffstats
path: root/install/pcmcia
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-05-04 12:16:11 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-05-04 12:16:11 +0200
commit7f3e83c8323e358f7da4788dd18f05f5546b021e (patch)
tree159c02b3cbe2b195939e84ef7243e6fd51b76762 /install/pcmcia
parent9fc4bd73bce1d2b107238933aea57945ee992b36 (diff)
downloadmkinitcpio-7f3e83c8323e358f7da4788dd18f05f5546b021e.tar.gz
mkinitcpio-7f3e83c8323e358f7da4788dd18f05f5546b021e.tar.xz
'added pcmcia and net'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@63 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'install/pcmcia')
-rw-r--r--install/pcmcia25
1 files changed, 25 insertions, 0 deletions
diff --git a/install/pcmcia b/install/pcmcia
new file mode 100644
index 0000000..4e419c0
--- /dev/null
+++ b/install/pcmcia
@@ -0,0 +1,25 @@
+# vim: set ft=sh:
+
+install ()
+{
+ MODULES=" $(checked_modules "/pcmcia/" | grep -ve "sound" -e "net") $(checked_modules "/ide/legacy")"
+ MODULES=$(echo ${MODULES}) #trim whitespace
+ if [ "x${MODULES}" != "x" ]; then
+ MODULES="${MODULES} sd_mod\nsr_mod\nide-disk\nide-cd"
+ fi
+ BINARIES=""
+ FILES=""
+ SCRIPT=""
+ add_file "/sbin/pcmcia-socket-startup.static" "/sbin/pcmcia-socket-startup"
+ add_file "/sbin/pcmcia-check-broken-cis.static" "/sbin/pcmcia-check-broken-cis"
+ add_file "/etc/pcmcia/config.opts"
+}
+
+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
+}