Skip to content

Conversation

@onitake
Copy link
Owner

@onitake onitake commented Feb 11, 2024

This is a more basic take on the changes suggested in #14 .
I'd like to introduce a version that is compatible both with SystemD and SysV first.

With this change, you can already configure additional units as needed, as long as the USB bus:device mapping doesn't change.
After this has been released, I'd like to revisit per-device support.

# -n enables testing mode without USB connectivity
# -l sets the listening address (use 0.0.0.0 to listen on all interfaces)
# -p changes the port
# -u <bus:dev> only map to one specific USB port (will use the first found otherwise)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that statically configuring bus:dev here is pointless, because these can and will change each time the device is enumerated. The -u option is only useful to pass in bus:dev that have been discovered from the running system.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it depends. On some systems, the order may be consistent across boots, as long as you don't plug into a different port. But this is only an example I thought may be useful to include here.

@onitake onitake merged commit 7213aff into master Feb 11, 2024
@onitake onitake deleted the debian-systemd branch February 11, 2024 23:34
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.

3 participants