init.d Support


tweetypeety

Members
Apr 7, 2011
299
52
Hi, have somebody tried to get init.d Support into the normal Rom. I tried it but strange thing is happening. Every script I add into this folder is empty after a reboot, so not being executed.

STRANGE
 
I have tried. No goal. It seems that MI2 kernel doesn't support init.d.


Wysłane z mojego MI 2
 
I did not have problems getting init.d to work. I just did the following:
- copy sysinit to /system/bin (permissions 0755)
- symlink busybox to /system/xbin/run-parts (permissions 0755)
- mkdir /system/etc/init.d (permissions 0755, scripts have same permissions)
- modify ramdisk to execute sysinit
 
I did not have problems getting init.d to work. I just did the following:
- copy sysinit to /system/bin (permissions 0755)
- symlink busybox to /system/xbin/run-parts (permissions 0755)
- mkdir /system/etc/init.d (permissions 0755, scripts have same permissions)
- modify ramdisk to execute sysinit
By modify ramdisk you mean write executing commands into init.rc or boot.img?

Wysłane z mojego MI 2
 
yes, adding sysinit as oneshot service and executing it "on boot".
Here is my boot.img: http://d-h.st/HzB
but you still need to make the other changes. maybe I'll make an update.zip for that, too
 
  • Like
Reactions: maxworks