Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Finless 1.6 init.d support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by Finless View Post
    WHen I get home again I will try this approach. That did not work before for me which is the way most ROMs do it. It has to do with kernel support. So maybe this kernel has it.

    In the mean time try this. Create a install-recovery.sh in /system/etc and set permissions. Edit this and put your script in it. Let's see if init.rc is processing this script at all as stated in init.rc like below:
    service flash_recovery /system/etc/install-recovery.sh
    class main
    oneshot

    See if your script runs in this script call.

    Bob
    Something weird is going on here...

    I created a /system/etc/install-recovery.sh with the following content:

    #!/system/bin/sh
    mkdir /sdcard/Download/mytest

    Still the directory isn't created during boot.... damn!!! So it isn't limited to the run-parts, something is wrong here...

    Comment


      #17
      Re: Finless 1.6 init.d support

      I use the following as a test script in init.d
      Code:
      #!/system/bin/sh
      #echo 'start'
      echo 'test ok' >>/data/local/tmp/test.log
      
      #insmod /system/lib/modules/md4.ko
      #insmod /system/lib/modules/cifs.ko
      I test this by executing from a terminal session, sometimes decomment the echo 'start' line as well. If it creates a file in
      /data/local/tmp/test.log then I delete the test.log file and reboot. I'm looking to see the file created and have single test OK line.

      If this works I comment out my test line and decomment the payload.
      900Supersport

      900supersports FreakTab rkROMkitchen

      900supersports guide to working-RK-ROMs

      Under Construction 900supersports guide to working MediaTek ROMS

      Struggling for time at the moment, but will try and drop by when I can.

      If you would like to support my ROM development then please visit my Google site donate page where you can make a paypal donation

      freaktab developer

      Proof that you're never to old to learn. Sometimes too old to remember though.

      Comment


        #18
        Originally posted by agw9262 View Post
        Something weird is going on here...

        I created a /system/etc/install-recovery.sh with the following content:

        #!/system/bin/sh
        mkdir /sdcard/Download/mytest

        Still the directory isn't created during boot.... damn!!! So it isn't limited to the run-parts, something is wrong here...
        Ah! I did not read this before. SDcard is not mounted during init.rc. It gets mounted MUCH later when the OS comes up and uses vold.fstab. So try making a dir in sya /data somewhere to test!

        Bob
        "Pzebacz im, bo nie wiedzą, co czynią"
        "Прости им, они не ведают, что творят"
        "Perdona loro perché non sanno quello che fanno"
        "Vergib ihnen, denn sie wissen nicht, was sie tun"
        "Vergeef hen want ze weten niet wat ze doen"
        "Pardonne-leur car ils ne savent pas ce qu'ils font"
        "Perdónalos porque no saben que lo que hacen"
        "Oprosti im, jer ne znaju što čine"
        "Forgive them as they know not what they do"





        Comment


          #19
          Bob,

          you were spot on - sdcard is late mount so my mistake.

          So i know init.d is running now, but still cant solve the netcfg problem.

          I need something later in the boot process to toggle the ethernet state.

          Quest continues...

          Thanks for the support

          Comment


            #20
            There is a APP on google play (I forget the name) that will run scripts after OS boot.
            The supercharger V6 documentation mentions it for people that cannot mode init.rc

            Bob
            "Pzebacz im, bo nie wiedzą, co czynią"
            "Прости им, они не ведают, что творят"
            "Perdona loro perché non sanno quello che fanno"
            "Vergib ihnen, denn sie wissen nicht, was sie tun"
            "Vergeef hen want ze weten niet wat ze doen"
            "Pardonne-leur car ils ne savent pas ce qu'ils font"
            "Perdónalos porque no saben que lo que hacen"
            "Oprosti im, jer ne znaju što čine"
            "Forgive them as they know not what they do"





            Comment


              #21
              Yep, cracked it

              Using Script Manager from the playstore allow you to execute a script following boot.

              USB ethernet problem solved

              Thanks again

              Comment

              Working...
              X