diff options
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-x | etc/pccard_ether | 21 |
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 |