init.d Support


Apr 7, 2011
286
40
52
#1
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
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#2
I have tried. No goal. It seems that MI2 kernel doesn't support init.d.


Wysłane z mojego MI 2
 

M1cha

Members
May 29, 2011
1,747
2,839
297
#4
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
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#5
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