How to make service auto-start on boot

JimBalo

Member
Jun 14, 2012
10
0
I am using Dropbear SSH server on a rooted Samsung Galaxy Tab 2 tablet running Android 4.0.3 (ICS). The problem is that the SSH server does not automatically start on boot.


I tried adding this to /init.rc:


Code:
service sshd /system/xbin/dropbear
   user  root
   group root
   oneshot


But that did not work, and the lines were gone from init.rc after reboot, so I assume that init.rc is re-created as part of the boot process.


How can I make Dropbear start automatically on boot?
 
Top