[maemo-developers] [maemo-developers] Hooking into wifi events (up/down)

From: Kalle Valo Kalle.Valo at nokia.com
Date: Mon Jul 31 20:42:13 EEST 2006
"Brad Burleson" <bradb667 at gmail.com> writes:

> I thought this was more a debian problem, but I'm stumped. I want to
> run a script each time the 770 connects and disconnects to/from the
> 'net.

Unfortunately it's not possible currently. I admit that it would be
really handy feature and it has been requested in maemo lists
frequently. Let's see what we can do :)

> I setup a script in /etc/network/if-up.d and /etc/network/if-down.d and it
> works as expected when I connect via bluetooth and an EDGE phone.

On 770? It shouldn't work, at least there's no code which runs
if-[up|down].d scripts. Unless I'm missing something...

> But when I connect via wifi, nothing happens.
>
> So, I tried editing /etc/network/interfaces to add an "up" "down" entry ala:
>
> iface eth0 inet dhcp
>  up /etc/init.d/foo start
>  down /etc/init.d/foo stop
>
> Still nothing happens.  What am I missing?

Debian network scripts are bypassed altogether in 770. icd starts the
DHCP client and pppd directly.

-- 
Kalle Valo


More information about the maemo-developers mailing list