#!/bin/bash # Use common with systemd service script. Requires you # to allow klipper user to run "usbip-setup" without sudo password. # # Add this to sudoers: # klipper ALL = NOPASSWD: /usr/bin/usbip-setup,/usr/bin/usbip # # Where "klipper" is your klipper user. # # Put this into ~/usbip.sh on host # Don't forget to do chmod +x sudo usbip-setup