Add a default config script
authorEric Andersen <andersen@codepoet.org>
Sat, 18 Jan 2003 22:40:26 +0000 (22:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 18 Jan 2003 22:40:26 +0000 (22:40 -0000)
sources/target_skeleton/etc/init.d/S30pcmcia [new file with mode: 0755]

diff --git a/sources/target_skeleton/etc/init.d/S30pcmcia b/sources/target_skeleton/etc/init.d/S30pcmcia
new file mode 100755 (executable)
index 0000000..a3906c3
--- /dev/null
@@ -0,0 +1,20 @@
+# Select the module that is correct for your hardware
+
+PCIC=yenta_socket
+#PCIC=i82365
+#PCIC=tcic
+#PCIC=sa1100_cs
+
+# Load up all the pcmcia modules
+/sbin/modprobe pcmcia_core
+/sbin/modprobe $PCIC
+/sbin/modprobe ds
+
+if [ $? != 0 ] ; then 
+    echo "pcmcia support not detected";
+    exit 0;
+fi
+
+/sbin/cardmgr -m /lib/modules
+
+exit 0;