force a device to be connected to ttyACM0 (reset of arduino)

Hi
I have a mega connected to a yun via the serial port. Then I read from ttyACM0 to be able to process stuff on the linino.
This works great untill the Arduino resets. Because my program (a bash script) keeps ttyACM0 locked Arduino gets assigned ttyACM1.
At this time the link between my arduino and linino is broken.
Is there a know way to work around this?

Best regards
Jantje

Upgrade from hotplug2 to standard Udev at Openwrt, OP of that thread is Jantje :P.

http://forum.arduino.cc/index.php?topic=193540.msg1533530#msg1533530

Write Udev rules by using ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", to get permanent device name like "/dev/arduino_A70063Yc"

http://playground.arduino.cc/Linux/Udev#.UyT9g_ldV8E

thanks sonnyyu
Looks like I need to do some reading up
Jantje

Yes, use udev rules. I have a embedded linux system on an x86 platform that connects to 3 USB to serial devices. I use udev rules to ensure the devices get the proper device assignment. I actually have to look at the product name to do this as a couple of the devices use the same driver numbers. Getting familiar with udev can save you a lot of time down the road.