Skip to content

Service running? #17

Open
Open
@AstraLuma

Description

Ok, so I'm reading https://www.collabora.com/news-and-blog/blog/2019/03/27/modern-usb-gadget-on-linux-and-how-to-integrate-it-with-systemd-part-2/ and i'm like.... this is nuts. (I have an uneasy truce with systemd on the best of days.)

Could gt learn to start a service, the process being:

  1. load the scheme
  2. mount the ffs
  3. start the service
  4. enable the gadget
  5. Wait on the service (with signal forwarding?)
  6. Unmount the ffs
  7. remove the scheme
  8. return the return code of the service

It doesn't need to do full daemon management, just wrap another program to do the necessary usb init/etc.

For the record, I'm using gt with https://github.com/viveris/uMTP-Responder/ because I wrote my own script to do all this and having an actual declarative file is much nicer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions