summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-03-12 15:39:26 +0000
committernate <nate@FreeBSD.org>1996-03-12 15:39:26 +0000
commit38eb2b368673f5ff345496b145b73de48dc230f5 (patch)
tree285c6fd953dcea611c949ecc3e0e3eb2c3b17c19 /etc/pccard_ether
parent4673b20df958499becc8cf99763415e5cfc23a9a (diff)
downloadFreeBSD-src-38eb2b368673f5ff345496b145b73de48dc230f5.zip
FreeBSD-src-38eb2b368673f5ff345496b145b73de48dc230f5.tar.gz
PC-CARD hooks. Someday it will actually enable working code. :)
Reviewed by: phk Submitted by: Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp> & BSD Nomads I re-wrote alot of this, but the ideas are based on the code from the most recent pccard-snapshot.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
new file mode 100755
index 0000000..7ab5103
--- /dev/null
+++ b/etc/pccard_ether
@@ -0,0 +1,21 @@
+#!/bin/sh -
+#
+# pccardether interfacename [ifconfig option]
+#
+# example: pccardether ep0 -link0
+#
+
+# Suck in the /etc/sysconfig variables
+if [ -f /etc/sysconfig ]; then
+ . /etc/sysconfig
+fi
+
+if [ "x$pccard_ifconfig" = "xNO" ] ; then
+ if [ "x$pccard_ifconfig" = "xDHCP" ] ; then
+ # DHCP currently not implemented
+ else
+ interface=$1
+ shift
+ ifconfig $interface $pccard_ifconfig $*
+ fi
+fi
OpenPOWER on IntegriCloud