summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
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