Skip to content

furbrain/systemd-usbip

 
 

Repository files navigation

Systemd unit for automounting usb devices over usbip

This is shamelessly ripped from [larsks sysetemd-usb-gadget][https://github.com/larsks/systemd-usb-gadget]

Installation

To install the systemd unit, run make install in the source directory, which will place the support scripts into /sbin and the systemd unit into /etc/systemd/system.

Configuration

Create one or files in /etc/usbip-devices named <device_name>.conf. These files must contain the following configuration keys:

  • USB_IDVENDOR -- Vendor ID.
  • USB_IDPRODUCT -- Product ID.

For example, to share a device with vendor:product 03f0:8607, create a file called /etc/usbip_devices/mouse.conf

USB_IDVENDOR=03f0
USB_IDPRODUCT=8607

To enable the device at boot, run:

systemctl enable usbip-device@mouse

To share the device immediately:

systemctl start usbip-device@mouse

To stop sharing it:

systemctl stop usbip-device@mouse

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 62.0%
  • Shell 38.0%