psct / usbip

systemd units for sharing usb devices by usb/ip
GNU General Public License v3.0
7 stars 2 forks source link

Create usbip_systemd_monitor.sh #1

Open hansij66 opened 6 months ago

hansij66 commented 6 months ago

Issue/Problem to solve: When the usbipd server is rebooted; When the USB device at usbipd server is removed (and re-inserted) The binding of uspip client with the server USB device gets disconnected The binding does not auto recover

This utility will ONLY restore the binding for dynamic unit files which have been started Unit files which have not been enabled/started, will be ignored

Execute this bash script on regular basis, eg via cron.d

KaiStarkk commented 2 months ago

Ideally we would want the client to prompt its subscribers.

Wish this was just part of usbip upstream