Re: nameif with PCMCIA nics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux