The only thing is having to use dbus-monitor or connler (both from maemo4, might need an update) to have the script run when the dbus message goes out that an inet connection was made.