Re: nameif with PCMCIA nics
Bill Nottingham <[email protected]> Wed, 3 Sep 2003 18:50:22 -0400
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <[email protected]> |
Dax Kelson ([email protected]) said: > > > In my testing, it is *not* > > > working with PCMCIA nics. :( > > > > Can you elaborate in what way it isn't working? > > > > Bill > > Yes, later today. Try the attached. Bill
hotplug-2002_04_01-hwaddr.patch
(text/plain, 650 B)
--- hotplug-2002_04_01/etc/hotplug/net.agent.foo 2003-09-03 16:48:06.000000000 -0400
+++ hotplug-2002_04_01/etc/hotplug/net.agent 2003-09-03 16:51:52.000000000 -0400
@@ -17,6 +17,7 @@
#
cd /etc/hotplug
+. /etc/sysconfig/network-scripts/network-functions
. hotplug.functions
# DEBUG=yes export DEBUG
@@ -47,6 +48,9 @@
# RedHat and similar
export IN_HOTPLUG=1
if [ -x /sbin/ifup ]; then
+ addr=`get_hwaddr ${INTERFACE}`
+ nconfig=`fgrep -il "HWADDR=$addr" /etc/sysconfig/network-scripts/ifcfg-*`
+ [ -n "$nconfig" ] && INTERFACE=$nconfig
debug_mesg invoke ifup $INTERFACE
exec /sbin/ifup $INTERFACE
else