[Unit] Description=Detect USB role (gadget vs host) DefaultDependencies=no After=sysinit.target Before=pd-synth-auto.service [Service] Type=oneshot ExecStart=/usr/local/bin/detect-usb-role.sh RemainAfterExit=yes StandardOutput=journal [Install] WantedBy=sysinit.target