How to write udev rules to run shell script that runs slcand comand with argument when specific usb device connected?
I want my raspberry pi 4 running ubuntu 22.04 server to recognize TEL0150 CAN USB module from DFrobots and create and bring up slcan0 interface when device plugged in. Shell scripts work if i run it in terminal with passing ttyACM0, but when triggered from udev it creates interface and brings it up for 3-7 seconds and then in the journalctl i can see that Link DOWN Lost carrier.