Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] transactional-update should check if a connection is metered before performing any updates #133

Open
fluoriteByte opened this issue Aug 27, 2024 · 1 comment

Comments

@fluoriteByte
Copy link

Title

@fcrozat
Copy link

fcrozat commented Sep 19, 2024

Based on https://stackoverflow.com/questions/43228973/detect-if-current-connection-is-metered-with-networkmanager, we could call
busctl get-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Metered (if NM is used for network) and check the results and only allow t-u service (started from timer) to run if connection is not metered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants