summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/autodetect2
-rw-r--r--install/net5
-rw-r--r--install/pcmcia25
3 files changed, 29 insertions, 3 deletions
diff --git a/install/autodetect b/install/autodetect
index 7375296..6cf252c 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -6,7 +6,7 @@ install ()
#blegh, we'll let /tmp clean itself up
AUTODETECT="$(auto_modules -e "/scsi/" -e "/block" -e "/fusion/" \
-e "/usb/" -e "/ide/" -e "/ieee1394/" -e "/cdrom"\
- -e "/net/")
+ -e "/net/" -e "/pcmcia")
$(cat /proc/filesystems | grep -v nodev) "
for m in $AUTODETECT; do
diff --git a/install/net b/install/net
index 69aa25f..268865b 100644
--- a/install/net
+++ b/install/net
@@ -2,7 +2,7 @@
install ()
{
- MODULES=" $(checked_modules "/net/") "
+ MODULES=" $(checked_modules "/drivers/net/") "
BINARIES=""
FILES=""
@@ -12,8 +12,9 @@ install ()
help ()
{
cat<<HELPEOF
- This hook loads the necessary modules for an network device.
+ This hook loads the necessary modules for a network device.
Detection will take place at runtime. To minimize the modules
in the image, add the autodetect hook too.
+ For pcmcia net devices please use pcmcia hook.
HELPEOF
}
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
+}