Re: nameif with PCMCIA nics
- To: Dax Kelson <Dax@xxxxxxxxxxxx>
- Subject: Re: nameif with PCMCIA nics
- From: Bill Nottingham <notting@xxxxxxxxxx>
- Date: Wed, 3 Sep 2003 18:50:22 -0400
- Cc: redhat-devel-list@xxxxxxxxxx
- In-reply-to: <1062608171.2874.11.camel@mentor.gurulabs.com>; from Dax@GuruLabs.com on Wed, Sep 03, 2003 at 10:56:11AM -0600
- Mail-followup-to: Dax Kelson <Dax@GuruLabs.com>, redhat-devel-list@redhat.com
- Reply-to: redhat-devel-list@xxxxxxxxxx
- User-agent: Mutt/1.2.5.1i
Dax Kelson (Dax@xxxxxxxxxxxx) 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/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
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Linux Kernel Development]
[Yosemite News]