Mailing List Archive


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

Re: [tlug] Perform an action when network cable unplugged (and back in again)



2012/6/16 Keith Bawden <keith@example.com>:

> On Wed, Jun 13, 2012 at 9:24 AM, Darren Cook <darren@example.com> wrote:
>> What I'd like to do is run a command when we get link down (I'd like to
>> unmount a network drive), and run another command when we get link up
>> (remount the drive). Are there any hooks in linux for this?
>
> netplugd

ifplugd also works for this:

http://0pointer.de/lennart/projects/ifplugd/

Cheers,
Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links