init.d Support

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by tweetypeety, Feb 2, 2013.

  1. tweetypeety

    Apr 7, 2011
    281
    40
    50
    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
     
  2. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    I have tried. No goal. It seems that MI2 kernel doesn't support init.d.


    Wysłane z mojego MI 2
     
  3. Negen

    NegenMembers

    Jan 25, 2013
    31
    10
    18
    Male
    Would be a nice feature

    Sent from my MI 2 using Xparent Skyblue Tapatalk 2
     
  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
     
    maxworks and ingbrzy like this.
  5. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    By modify ramdisk you mean write executing commands into init.rc or boot.img?

    Wysłane z mojego MI 2
     
  6. 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
     
    maxworks likes this.

Share Our Site