[Unit]
Description=USB_ModeSwitch_%i

[Service]
Type=oneshot
ExecStart=/usr/sbin/usb_modeswitch_dispatcher --switch-mode %i
# Testing
#ExecStart=/bin/echo "usb_modeswitch.service: device name is %i"

# Do not ever terminate violently on restart -- interrupting the switching
# transaction will crash some modems! We'll terminate shortly anyways.
# If we hang, FinalKillSignal (defaults to SIGKILL) will take care of that.
KillSignal=SIGCONT
