I'm working with an Arduino board and Matlab under Linux. Matlab, unfortunately, doesn't recognize the Arduino board when is connected unless I create a symbolic link to the Arduino board in /dev by:
sudo ln -s /dev/ttyACM0 /dev/ttyUSBx
Where x is a number and ttyACM0 is the device associated to the Arduino board. I have to run this line every time I want to work with the Arduino and Matlab. So, my question is pretty simple: Is it possible to automatically create this symbolic link exactly when the Arduino board is connected and remove it when disconnected?