Skip to main content
# Description

Run scripts on network state changes

# Install

pip install connman-dispatcher [--user]


# Usage

$ connman-dispatcher -h
usage: connman-dispatcher [-h] -p PATH

Scripts are run from folders setted in -p argument.

One can set more than one folder.

When network state changes, each script is executed with either `up` or `down`
argument, depening on the current network state.

For example, if connman-dispatcher was run like this:

connman-dispatcher -p /etc/connman-dispatcher

And we have some scripts in bash in this folder, something like:

```bash
up() {
# handle up state
}

down() {
# handle down state
}

state="$1"

case $state in
up)
up
;;
down)
down
;;
esac
```

When network state changes from `down` to `up`, each script in `/etc/connman-dispatcher`
will be executed with `up` argument, like this:

/etc/connman-dispatcher/10_handle_network_state_change.sh up
/etc/connman-dispatcher/some_other_executable up


Scripts, as well as script folders are sorted by name.

Metadata

Release files for connman-dispatcher 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for connman-dispatcher 0.0.8
File Size Uploaded Provenance Actions
connman-dispatcher-0.0.8.tar.gz 3.4 kB Without provenance Details for connman-dispatcher-0.0.8.tar.gz

Release files / connman-dispatcher-0.0.8.tar.gz

Download URL connman-dispatcher-0.0.8.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
41e3b09564477d0851ab14bb41f7d14f420742b12ebdc262aeeb6eae5c8a745f
BLAKE2b-256 checksum
How to use checksums
8050a31a71e5c6c7a60b376e283b4a8b499b7e703bc1a18476be3d656fd8fc4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for connman-dispatcher 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page