Advertisement
zefie

Pi0 USB Multi-Gadget systemd service

Oct 28th, 2018
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. [Unit]
  2. Description=USB Gadget Setup Service
  3. ConditionKernelCommandLine=modules-load=dwc2,libcomposite
  4. After=systemd-modules-load.service
  5.  
  6. [Service]
  7. Type=oneshot
  8. ExecStart=/usr/local/sbin/gadget_init
  9.  
  10. [Install]
  11. WantedBy=sysinit.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement