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