Hi Mike, You may take a look of system/core/init/device.c. Cheers, Tick
On Tue, Dec 8, 2009 at 5:28 AM, ms12 <[email protected]> wrote: > I have a GSM radio connected via the USB port on a beagle board. If I > type chmod 0666 /dev/ttyUSB1 at the console, it connects to the radio > just fine. If I put the chmod in init.rc, the permissions don't get > set. I believe the reason is /dev/ttyUSB1 is created after init > because of the time to do the USB probing and USB/serial setup. > > I tried adding > > on device-added-/dev/ttyUSB1 > chmod 0666 /dev/ttyUSB1 > chown radio radio /dev/ttyUSB1 > > to init.rc, but this does not seem to work either. > > Is there any way to get the permissions set during init on a USB/ > serial device? > > Mike > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
