Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
rohan32
Old
#1  
rohan32's Avatar
Recognized Developer - OP
Thanks Meter 3986
Posts: 1,859
Join Date: Nov 2011
Location: New Jersey

 
DONATE TO ME
Default [MOD] Add init.d Scripting Support

I didn't make this, the original creator is "DooMLoRD", I just found that it works for our version of the One X as well!

Quote:
Originally Posted by DooMLoRD View Post
[ info ]

i am attaching a easy to run package which contains the files required for full functionality of executing startup scripts (init.d scripts)...

basically this will allow the user to execute custom shell scripts, placed in /system/etc/init.d/ folder and they will be executed on each boot!


Please note that some custom ROMs/Kernels already have this feature... This addon is ment to be used on STOCK ROM...


[ requirements ]
  1. stock rooted ROM
  2. windows PC with adb drivers installed


[ how to install ]
  1. download the provided zip package
  2. save it on c:\
  3. extract the contents of the package
  4. connect phone with usb debugging active to PC via ADB
  5. execute "runme.bat"
  6. follow onscreen instructions & enjoy!

incase some issue is there post the output/log of script


[ additional info ]

i have added the following things in the package:
  1. corrected /system/bin/sysint file
  2. run-parts binary in /system/xbin/run-parts (which is basically busybox 1.19.3 binary)
  3. correct /system/etc/install-recovery.sh file (this file gets executed by default on stock kernel too!)
  4. test/example script /system/etc/init.d/99test

to check if this is working the test script (99test) will create a temporary file /data/local/tmp/init.d_log_test.txt on each boot


[ donations ]

if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc

PAYPAL DONATION LINK


[ download link ]

generic-init.d-support-v01.zip (mirror)
MD5HASH: 4cd2606280524aa96af9d486ce90ea7e


OR

generic-init.d-support-v01.zip
MD5HASH: 2eda273af4b91c34f868807820cceaee


let me know how it goes!




ENJOY!
So just follow the instructions after downloading the package below. I'll try making a CWM flashable file when I get home.
I will also port over some nice CPU scaling tweaks from my other devices and some nice maintenance scripts.
Attached Files
File Type: zip DooMLoRD-generic-init.d-support-v01.zip - [Click for QR Code] (1.37 MB, 298 views)
The Following 4 Users Say Thank You to rohan32 For This Useful Post: [ Click to Expand ]
 
scrosler
Old
#2  
scrosler's Avatar
Recognized Developer
Thanks Meter 31145
Posts: 16,770
Join Date: Feb 2007
Location: Fargo

 
DONATE TO ME
So how does this do this without modding init.rc in ramdisk? Or does it? I cant look, just wondering how it works.
 
Turge
Old
#3  
Turge's Avatar
Recognized Developer
Thanks Meter 5366
Posts: 2,858
Join Date: Sep 2008
Location: Hamilton

 
DONATE TO ME
Quote:
Originally Posted by scrosler View Post
So how does this do this without modding init.rc in ramdisk? Or does it? I cant look, just wondering how it works.
He's running sysinit via /system/etc/install-recovery.sh

Very nice!



Report Bugs and feature requests to our Team Venom - ViperXL: Google Issue Tracker

 
nDman.sk
Old
#4  
nDman.sk's Avatar
Member
Thanks Meter 12
Posts: 87
Join Date: Nov 2011
Thanks for sharing this useful script. it worked for me on MIUI Sensation sense base rom.
.................................................. .....
.....Device |
HTC Sensation 4G - Rooted and S-Off'd
........Rom | Team Venom's ViperS 1.6.3
.....Kernel | Overclocked kernel v1.5.2 by SebastianFM
......Radio | 11.76A.3504.00P_11.24A.3504.31_M
...Recovery | 4EXT Recovery Touch v1.0.0.5 RC 8
....Battery | ANKER 1900 Mah

.................................................. .....
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...