We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Run some script after connect to specific network (especially WLAN)

asked 2015-06-03 16:02:02 +0200

petRUShka gravatar image

updated 2016-08-17 10:59:28 +0200

jiit gravatar image

I'm thinking about writing automation script for some specific WiFi network (very basic version of what asked in that quiestion). So I want to learn how to make hook that runs after connecting to specific network (for example, WiFi with some specific SSID).

Are there some documentation on that topic?

edit retag flag offensive close delete

Comments

Networkmanager supports hooks, don't if connman suports them but a heard a plugin sometime ago that does this.

Thaodan ( 2015-06-03 18:36:48 +0200 )edit

@Thaodan, do Jolla Phone use Networkmanager? Could you please name the plugin?

petRUShka ( 2015-06-03 18:47:10 +0200 )edit

No it doesn't Networkmanager don't needs those, connman needs one, but I don't know the name.

Thaodan ( 2015-06-03 23:52:14 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2015-06-08 17:24:13 +0200

petRUShka gravatar image

updated 2015-06-08 17:27:50 +0200

It seems that I found solutions by myself. There are at least 3 of them:

  1. There is another question Run script after connected to wifi. As an answer there is a dbus-based bash solution.
  2. There is wifi-runner project on github. Author created userspace systemd service and python script listening on dbus. It is possible to run different scripts on connection. Example config.
  3. A proprietary Situation software from Jolla Harbor allows user to run arbitrary script after phone connecting to some WiFi network.
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2015-06-03 16:02:02 +0200

Seen: 2,106 times

Last updated: Jun 08 '15