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

A couple of changes to support Fedora #1155

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AdamWill
Copy link

This adds a Fedora block to install_prereq.sh, and enhances start_flash.sh to handle disabling systemd-resolved at the start and re-enabling it at the end, if it's being used (it listens on port 53, which this tool needs to take over).

In the Fedora block we use a PR branch of sslpsk which makes it work with Python 3.12 and later, because current Fedoras are on 3.12 or 3.13. Other distros may also need this change now or soon. See drbild/sslpsk#28 .

This should make it work more or less out of the box on Fedora, following the instructions. I was able to convert a couple of old smart plugs I found lying around after doing the equivalent of these changes, so thanks for the tool!

This is the stuff I found I needed to make this script work on
Fedora. We also install the branch of sslpsk that backs this PR:
drbild/sslpsk#28
because current upstream sslpsk does not work on Python 3.12+,
and so does not work on current stable Fedora.

Signed-off-by: Adam Williamson <[email protected]>
On systems that use systemd-resolved (e.g. Fedora/RHEL installs
out of the box, usually), it listens on port 53, so it blocks
this tool. This should handle disabling and masking it at the
start of `start_flash.sh`, then unmasking and restarting it
at the end.

Signed-off-by: Adam Williamson <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant