I'm trying to add the sections to my init.rc:
service ril-daemon /system/bin/rild
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio
disabled
on device-added-/dev/ttyUSB0
start ril-daemon
on device-removed-/dev/ttyUSB0
stop ril-daemon
The on device-* syntax is described in the porting guide
(http://source.android.com/porting/bring_up.html).
When I insert a 3G modem usb dongle to
my dev board, the node /dev/ttyUSB0
is created. I expected the ril-daemon service
should start, as said in the init.rc.
But it did NOT.
I checked the code in system/core/init,
but I can't find any related code for the
on device-added-* syntax.
(I'm using Froyo branch).
I doubt whether if it works as described
in the porting guide.
Am I missing something?
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting