You are not logged in.

#1 2008-03-25 02:27:21

Nathan P
Member
Registered: 2008-01-30
Posts: 93

auto detect internet/usb

I am running Arch on my laptop and I love it.  I was wondering if there was a way to make the computer automatically run dhcpcd on eth0 when a cable is plugged in (Sometimes I have to move the computer and having to restart or manually run dhcpcd eth0 when I plug back in is a pain.  Also, if I unplug my mouse for any reason, I have to restart the computer to get it back.  How can I fix this?

Thanks,
Nathan

Offline

#2 2008-03-25 02:38:34

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: auto detect internet/usb

Nathan P wrote:

I am running Arch on my laptop and I love it.  I was wondering if there was a way to make the computer automatically run dhcpcd on eth0 when a cable is plugged in (Sometimes I have to move the computer and having to restart or manually run dhcpcd eth0 when I plug back in is a pain.

Install ifplugd

pacman -S ifplugd

add ifplugd to DAEMONS= array in rc.conf. wink

Offline

#3 2008-03-25 06:36:28

Nathan P
Member
Registered: 2008-01-30
Posts: 93

Re: auto detect internet/usb

thanks man!

Offline

#4 2008-03-25 06:38:05

Nathan P
Member
Registered: 2008-01-30
Posts: 93

Re: auto detect internet/usb

Should that work for the mouse too or just the internet?

Offline

#5 2008-03-25 08:16:13

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: auto detect internet/usb

Nathan P wrote:

Should that work for the mouse too or just the internet?

Read about it. As a general rule, don't just blindly do things people tell you to do on the forums, you won't learn anything that way.
Anyhow, if you'd read the description of what you installed on your system you'd know the answer to that question.

Here's how you could have done that:

$pacman -Ss ifplugd
extra/ifplugd 0.28-3
    A daemon which brings up/down network interfaces upon cable
    insertion/removal.

$ pacman -Qi ifplugd
Name           : ifplugd
Version        : 0.28-3
URL            : http://0pointer.de/lennart/projects/ifplugd
.........
Description    : A daemon which brings up/down network interfaces upon cable
                 insertion/removal.

The suggestion box only accepts patches.

Offline

Board footer

Powered by FluxBB