summaryrefslogtreecommitdiffstats
path: root/install/pcmcia
diff options
context:
space:
mode:
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
+}