The C Source, Patches and (shudder!) Bugs
Post Reply
0xa5a5
Posts: 1
Joined: 08 Jan 2019, 11:30

[PATCH] restart systemd service for modeswitch dispatcher

Post by 0xa5a5 » 08 Jan 2019, 11:52

When disconnecting and reconnecting the USB dongle before usb-modeswitch terminates, the usb-modeswitch@.service unit might not be started for the particular device (because the oneshot service state is still activating). Consequently, the modeswitch would not happen. As a workaround we can restart the service unit instead.
Attachments
0001-change-usb_modeswitch.sh-to-restart-the-modeswitch-s.patch
(1.36 KiB) Downloaded 759 times

Post Reply