Results 1 to 1 of 1

Thread: New INIT with exec and import implemented

  1. [translate]    #1
    Senior Member
    Join Date
    Jul 2010
    Location
    Hungary
    Posts
    766

    Default New INIT with exec and import implemented

    I had got the sources of our init a few weeks ago (thanks to gmobile), and today I've implemented the 'exec' and 'import' commands.

    The sources can be found here: http://github.com/Xmister/i5700-xmister-init

    A few note:
    • It seems exec in imported file not working.
    • For me the imported file only worked with "on boot" specified. That was maybe because I imported it within init.rc's "on init" section.
    • I've written exec with a 60s timeout, so nothing can freeze the boot process forever.


    A few examples:
    init.rc:
    Code:
    .
    .
    .
     # /xbin (busybox) - Mount early for e2fsck
        mount squashfs /dev/bml8 /xbin ro loop
    .
    .
    .
        exec /xbin/busybox sh -c "e2fsck -fyc /dev/stl5 > /data_check.txt"
        mount rfs /dev/stl5 /data nosuid nodev xattr,check=no
        mount ext2 /dev/stl5 /data nosuid nodev noatime nodiratime
        mount ext4 /dev/stl5 /data nosuid nodev noatime nodiratime barrier=1 data=ordered
    .
    .
    .
       import /data/proba.rc
    .
    .
    .
    proba.rc:
    Code:
    on boot
    
      write /a.txt a
    Last edited by Xmister; 11-28-2010 at 09:50 PM.
    EXT ModMulti-Boot System
    Ultimate Spica Recovery
    My newest kernel+recovery for Odin can always be found here
    If you would like to help me a little, register at Xpango, and complete a free offer. (By the way, if you complete enough offer you will get a Galaxy SII for free)
    Or you can simply DONATE, if you like my work! PayPal address: xmisterhu@gmail.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •