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

Re: execute scripts when is wireless card inserted


On  15 Apr, this message from Tamas K Papp echoed through cyberspace:
> When my wireless card is plugged in, I would like to
> 1. ifdown eth0
> 2. ifup ath0
> 3. reconfigure firestarter (I have figured out how to do this from a
> script)

Probably the easiest is to hook into /etc/network/interfaces and use the
pre-up/post-down options to add actions to execute.

man 5 interfaces



Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

Reply to: