Automatically bringing ethernet interfaces up when the cableis connected

Jaap A. Haitsma jaap at haitsma.org
Sat Dec 13 23:48:19 UTC 2003


seth vidal wrote:
> On Sat, 2003-12-13 at 15:04, Jef Spaleta wrote:
> 
>>Julien Olivier wrote:
>>
>>>You might be interested by this bug report then:
>>>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=83705
>>
>>Well...if we are going to compare bugreports:
>>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=103419
>>
>>-jef
> 
> 
> +1 for getting this implemented for FC2.
> I think it'd be a great treat, but we'll need to be careful about the
> routing if you bring up the device if wireless or something else is
> already up.
> 
> -sv
> 
> 
+1 also from me. Just downloaded and compiled the stuff, it works really 
well. Really handy I have to say.

For people who can't wait for Fedora Core 2. Here's what you need to do.
It took me a while before I got it to run so here it is what you should do.

1. Download libdaemon from http://0pointer.de/lennart/projects/libdaemon/
2. Untar the tarball
3. ./configure --prefix=/usr
4. make
5. make install
6. Download ifplugd from
http://0pointer.de/lennart/projects/ifplugd/
7. untar the tarball
8. ./configure --prefix=/usr --sysconfdir=/etc
9. make
10. make install

The script starting ifplugd daemon is then in /etc/init.d
Only thing more to do is putting symbolic links in all rcX.d dir's by
running the following commands

ln -s /etc/rc0.d/K89ifplugd /etc/init.d/ifplugd
ln -s /etc/rc1.d/K89ifplugd /etc/init.d/ifplugd
ln -s /etc/rc6.d/K89ifplugd /etc/init.d/ifplugd

ln -s /etc/rc2.d/S11ifplugd /etc/init.d/ifplugd
ln -s /etc/rc3.d/S11ifplugd /etc/init.d/ifplugd
ln -s /etc/rc4.d/S11ifplugd /etc/init.d/ifplugd
ln -s /etc/rc5.d/S11ifplugd /etc/init.d/ifplugd

Finally you have to edit /etc/ifplugd/ifplugd.conf
to add the network devices on which you want to use ifplugd


In the tarball there are also spec files. So maybe somebody can put can 
make rpm's out of these two tarballs (I still have to find out some day 
how building rpm's works) and put them in the fedora.us repository already.

Jaap


BTW My PCMCIA wireless LAN doesn't seem to need this utility. It comes 
up automatically already. Does PCMCIA issue an ifup automatically










More information about the fedora-devel-list mailing list