Add a hook to run when NetworkManager connects
Posted
by
rplevy
on Super User
See other posts from Super User
or by rplevy
Published on 2010-02-27T01:05:27Z
Indexed on
2012/04/04
11:33 UTC
Read the original article
Hit count: 259
networkmanager
|dbus
What would be a good way to make a script run every time my computer connects to the network in Ubuntu? Would I somehow use dbus to do this?
Background: when I'm on the train I run a short Perl script to click a button on the splash page. That way I can immediately use the internet without having to manually visit a pointless website. My script is a near-perfect solution, but it would be perfect if it could run automatically any time I connect to the network.
© Super User or respective owner