[maemo-developers] [maemo-developers] Hooking into network configuration

From: Stefan Tomanek stefan at pico.ruhr.de
Date: Fri Mar 24 01:53:59 EET 2006
Hello,
I got my Nokia 770 a few days ago, and I am quite impressed and satisfied;
However I am confused about the network configuration. I have done some tweaks
to both Debian (http://stefans.datenbruch.de/interfaces/) and iPAQ/Familiar
(http://stefans.datenbruch.de/h5450/) networking, and was somehow disappointed
that Maemo does not use /etc/network/interfaces for network configuration,
although the file provides everything needed to store multiple configuration
PLUS a lot of flexibility when it comes to more complicated setups.

For example, my university uses a Cisco VPN to give us wireless access to the
internet; I have to use VPNC to gain a working net access, and I was able to
make it work automatically by hooking it into the network setup descriped on
my pages above. I would like to do so as well on my Nokia 770, but I did not
find any scripts triggered during interface configuration; I also started to
investigate DBUS activity (http://stefans.datenbruch.de/nokia770/) during
network initialization, but was unable to hook into it using simple shell
scripting (more about that in another mail). I also think that this might be
too late - After issuing the DBUS message, all apps will think that internet
connectivity is available, so in my opionion there should be a script
thriggered before this DBIS signal is emitted. I'd even prefer a debian style
setup via /etc/network/interfaces, which already has all abilities to handle
profiles, callbacks etc. The generation of DBUS signals would be quite easy to
implement through apropiate scripts in "/etc/network/if-up.d/" (if-pre-up.d, 
if-down.d, if-post-down.d etc.) Of course this would require a doog parser for
that file.

So, is there a way of hooking into the network configuration process, perhaps
even delaying the "internet available" signal until my vpn client has
established his connection?
-- 
.:°stefan at pico.ruhr.de | tommie at IRC | GPG: finger stefan at localhost.ruhr.de °:.
|_____________________ http://stefans.datenbruch.de/__ ______________________|
| Wer Header fälscht oder verfälscht oder gefälschte oder verfälschte Header |
`-__in_Umlauf_bringt_wird_mit_Scorefile_nicht_unter_-500_Punkten_bestraft__-'

More information about the maemo-developers mailing list