[Guide][init.d]How to run init.d scripts on boot + Best Battery Life

Search This thread

sfhub

Senior Member
Oct 23, 2008
5,350
7,231
well, um, I have an addon.d folder?
Anybody can create directories in /system or /system/etc if they have root or you've flashed a custom ROM.

There is no standard pre-defined meaning to those additional directories.

We assign "meaning" to the init.d directory by adding commands to the start that will run the scripts in init.d. It is called init.d because historically that is one of the directories in unix/linux where the startup scripts are kept. Android/linux has no concept of init.d (it was stripped of init.d of using init.d for start by use of a custom init process). We are just porting over the name and concept.

Given that, someone can just create addon.d directory and assign some meaning to it. It isn't something I'm familiar with though I can guess based on naming that someone extended some ROM and wanted to have startup scripts run after the scripts from the base ROM, though that is just a guess. You'd have to verify how that directory is being treated in the startup scripts.
 
  • Like
Reactions: gershee

d12unk13astard

Senior Member
Aug 5, 2010
2,597
750
Bakersucks
Re: Ext_sd

Anyway to get the edit below to stick after a reboot with these init.d scripts. I need my external sd card to be mounted as /sdcard.

export EXTERNAL_STORAGE2 /mnt/sdcard
export EXTERNAL_SFORAGE /mnt/sdcard/external_sd

Ok tried it but it seems to reset to default on reboot, thanks for the suggestion tho.

before reboot

AH8WQ.png


after reboot

sDFU5.png


Sent from my SPH-D710 using xda premium



Sent from my SPH-D710 using xda premium
 
Last edited:

sfhub

Senior Member
Oct 23, 2008
5,350
7,231
You'd have to make the changes in init.rc because all the startup scripts are started as a subchild process, meaning any variables you export are only valid for subchilds of the init.d script and go away once init.d processing is done.

If you change init.rc and want your settings to stick you have to repack the kernel as that file is in the initramfs of the kernel (ie when you edit that file you are editing a mem cached copy, not the actual source copy) Therefore when you reboot, your changes go away.
 
  • Like
Reactions: pcmanager

BigJPNut

Senior Member
Jan 21, 2011
1,809
571
That's the reason why I pulled the tweaking scripts for now. I'm almost done with testing the scripts and going to post it again with some detailed explanation. I modified the script just a little again because I wanted to use 10M frequencies always during the conservative and ondemand mode. If you want, you can also edit the CPU tweak files but would not be bad waiting until my guide comes out about these files.

Ondemand up threshold still not set properly or am I jumping the gun on installing this? I still have your tweak script installed also...

EDIT: I removed ur script and CPU_FREQ script runs fine.
 
Last edited:

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
Just like sfhub said.
The challenge is, we have to find the place where the kernel allows the custom shell script.
Init.rc allows init.d (repacked) or install-recovery.sh (stock). We also have to be sure that those are not over-written by kernel whenever the kernel is changed.

If any kernel that allows any custom script, then we can make the same thing like putting install-recovery.sh. But questions is, how can we find that specific place? Only the way would be asking to Dev to include the space for custom script or using market app something like SManager.
 
Last edited:

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
Ondemand up threshold still not set properly or am I jumping the gun on installing this? I still have your tweak script installed also...

These two tweaks are the exactly the same scritps on my phone (stock fd19). If upthreashold is too small, you can increase it or use conservative governor (increase max cpu freq to 1200000 too)

Edit: that's why there are only calk's tweaks in post no2. There were some values not accepted by kernel and i' m wrong on that part. Maybe later today ill post my tweaks again.

Edit: Please download Mod Calk's tweaks only and test it. My tweaks are not ready yet.

Sent from my SPH-D710 using xda premium
 
Last edited:

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
These two tweaks are the exactly the same scritps on my phone (stock fd19). If upthreashold is too small, you can increase it or use conservative governor (increase max cpu freq to 1200000 too)

Edit: that's why there are only calk's tweaks in post no2. There were some value not accepted by kernel and i' mworing on that part. Maybe later today ill post my tweaks again.

Sent from my SPH-D710 using xda premium

Completed the complementary Calk's tweak guide in http://xdaforums.com/showpost.php?p=25120392&postcount=2.

Added my tweaks back to the second post. The values would be applicable only to the configurable items.
 
Last edited:

BigJPNut

Senior Member
Jan 21, 2011
1,809
571
Thanks for this. Just wanted to say I still like ur original tweaks better. The new tweaks leave the OOM settings at stock and Calculin's modified tweaks still leave the ondemand up threshold at stock 85%. Until I get more time to mess with it im just running your original tweak script by itself. Thanks again....

Sent from my SPH-D710 using XDA
 
  • Like
Reactions: kobridge

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
Thanks for this. Just wanted to say I still like ur original tweaks better. The new tweaks leave the OOM settings at stock and Calculin's modified tweaks still leave the ondemand up threshold at stock 85%. Until I get more time to mess with it im just running your original tweak script by itself. Thanks again....

Sent from my SPH-D710 using XDA

Of course, there are still many areas for the improvement. With these scripts, I'm getting more battery life than ever.

I'm still trying to figure out many other things and to get the better on screen battery life now.
 

Attachments

  • Screenshot_2012-04-24-09-08-00.jpg
    Screenshot_2012-04-24-09-08-00.jpg
    35.2 KB · Views: 134
  • Screenshot_2012-04-24-09-08-08.jpg
    Screenshot_2012-04-24-09-08-08.jpg
    23.8 KB · Views: 139
Last edited:

gershee

Senior Member
ok 30 somewhat flashes and I cannot get the phone to install init.d folder. is there a guide I can follow for the repacking kernel for this to work? I've tried a minion of different things. want init.d to run on boot for fd19, Thanks and Sorry If I have given anyone a migraine other than myself.

you'll get it bro! I'm following your progress in this man! I like where this is going.. wish i could be of help..
 
  • Like
Reactions: justlovejoy

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
ok 30 somewhat flashes and I cannot get the phone to install init.d folder. is there a guide I can follow for the repacking kernel for this to work? I've tried a minion of different things. want init.d to run on boot for fd19, Thanks and Sorry If I have given anyone a migraine other than myself.

If /system/etc/init.d is not there, simply create a folder thru root explorer or es file explorer and assign the permission 755 rwxr xr x.
 
  • Like
Reactions: justlovejoy

sfhub

Senior Member
Oct 23, 2008
5,350
7,231
ok 30 somewhat flashes and I cannot get the phone to install init.d folder. is there a guide I can follow for the repacking kernel for this to work? I've tried a minion of different things. want init.d to run on boot for fd19, Thanks and Sorry If I have given anyone a migraine other than myself.
If your ROM doesn't have an init.d folder (most likely if it doesn't use them by default), then you can flash forever and the folder will never show up.

Auto Root doesn't create one because it assumes you'll create it if you want to install scripts.

Just create it manually as suggested above.
 
  • Like
Reactions: justlovejoy

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
extreme battery saver tweaks

I just added one more tweak files (init.d.zip) and it include three tweaks. I tested this tweaks on FD19 and FD24 stock roms. If you really want to extend your battery life, you may want to test it.

Edit: Found that Camera app kept freezing, fc, and made system reboot if max CPU frequency is set to under 1Ghz. So because of this app, I had to keep max cpu speed to 1Ghz when the phone is in awake mode. Uploading new tweak files.
 
Last edited:
  • Like
Reactions: gershee

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
Experience the Best Battery Life

I've modified my tweaks and now I'm getting about 1hour with 1% of battery.
Like I mentioned several times, I'm focusing on saving the battery life during the sleep and standby mode without losing any incoming calls/mms/emails/etc.
(so, don't confuse with screen on time battery consumption. extending battery life during awake, it would be my next personal project)

The script is not uploaded yet and I'm planning to create a new thread with full information after I test this with new upcoming FD26 (currently I'm on rooted FD24 Stock)

For some people who is in very good signal area, it would be easy getting 1 hour battery life with 1%. But in my case, when I started this test, my battery is used about 10 % in every hour.

More coming soon...
 

kobridge

Senior Member
Jan 10, 2012
1,710
3,460
Jacksonville, FL
Samsung Galaxy S22 Ultra
Share so we can validate your results. Oh and yeah, on the 1Ghz issue. Calk posted about it in FD02 1.4 release of his rom. I saw it, changed it back to his.

I was wondering if the issue was fixed (if it's really an issue) and guess you just answered for me. :)

LOL

In somewhere I posted my test about the CPU frequencies. If phone goes down below 1 Ghz, some apps start to fc,frozen, random reboots and all bad things. So, I had to stay with 1Ghz with onedemand governor. I basically I used his tweak and made some value changes + lots more.
 

JohnCorleone

Senior Member
Dec 19, 2010
16,188
5,864
Whittier,CA
Kobridge, thanks for the great instructions on writing a test script to check init.d support. I just tried it using sfhub's Auroroot to add init.d to stock FD26 kernel and it worked great!

Sent from my SPH-D710 using Xparent Blue Tapatalk 2
 

Attachments

  • uploadfromtaptalk1335654105804.jpg
    uploadfromtaptalk1335654105804.jpg
    23.2 KB · Views: 148
  • uploadfromtaptalk1335654120811.jpg
    uploadfromtaptalk1335654120811.jpg
    29.6 KB · Views: 144
  • uploadfromtaptalk1335654132543.jpg
    uploadfromtaptalk1335654132543.jpg
    14.1 KB · Views: 140

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    How to run init.d scripts on Boot- 4/26/12

    Before starting this guide, I'd like to say "thanks to many Devs" on this forum.

    [Update] sfhub just added init.d support function into his auto root tool at http://xdaforums.com/showthread.php?t=1342728
    If your kernel does not support init.d, then use his tool to add init.d support without flashing a new kernel.
    Just in case you only want to have a script which invoke the init.d scripts, check the second post in this thread.

    4/29/12 sfhub improved his auto root tool to support some other kernels, those are enabling init.d through different .xc files.
    Stock kernels and some repacked kernels are supporting init.d scripts through init.xc and/or install-recovery.sh but some other repacked kernels are supporting init.d scripts running through different .xc files. So, sfhub made some modification on his script. Because he's adding a new install-recovery.sh file into /system/etc folder, if there's a existing install-recovery.sh file at the same location, the existing install-recovery.sh file will be replaced by his previous version of Auto Root Tool. To prevent the replacing existing install-recovery.sh file with his same named install-recovery.sh file which supports the init.d scripts, his tool now creates a copy of old file and create a new one. Old install-recovery.sh file will be named as install-recovery-orig.sh.

    If you just want to simply enable init.d support without using sfhub's tool, then download the new-install-recovery.zip file from my second post and unzip it. If there's any existing install-recovery.sh file and it's not related to init.d support, then rename it to install-recovery-orig.sh and move the unzipped file to same directory (/system/etc). Assign the file permission 550 (r_xr_x___). New install-recovry.sh file will execute the init.d scripts (if it's there) and old install-recovery-orig.sh (if it's there) during the boot.
    4/30/12 I've modified his install-recovery.sh file (new-install-recovery.zip, attached) to use the default busybox command. If you don't have busybox installed on your phone, you will also need to download attached busybox.zip and unzip, place into /system/xbin folder with permission 755.


    Update2 I'm uploading my tweaks again. Based on my test, this tweak works much better and extended my battery life a lot more. In this battery tweak, the max cpu speed would set to 1000000, but normally it would run with 800000 or less. Based on my test, this works great and no fc, no random reboot. If you really want to extend your battery life, then test your battery life with this tweaks. (tweak file is attached in second post). My test was done under FD19 and FD24 Stock Roms

    Update3 Found that Camera app kept freezing, fc, and made system reboot if max CPU frequency is set to under 1Ghz. So because of this app, had to keep max cpu speed to 1Ghz when the phone is in awake mode. Uploading new tweak files.

    Upon his tools update, my guide in here would be only for some limited people who just want to test the scripts or want to selectively run the scripts during the boot. For example, if you have 10 scripts in init.d and just want to selectively run from those, you can use SManager.

    Issue: /system/etc/init.d scripts does not run automatically during the boot

    Details:
    Rogue Repacked Kernels are started supporting init.d scripts during the boot and many custom roms are now including the scripts in /system/etc/init.d. But usually repacked kernel is not ready when the new rom comes out and we need to use old version of repacked kernel to get the init.d support.

    How to test: (only applicable to the phones having Repacked Kernel and supporting init.d scripts. For the stock kernel, I’ll explain it later how to run it during the reboot)

    It seems like Rogue Repacked kernel allows the init.d script running thru /init.rc. init.rc file is part of bootimage and this file is over-written everytime when the system reboots. So, editing this file is not possible. Only the way editing this file would be by extracting bootimage and making modification, repact the kernel image.

    Running the init.d script from init.rc is,

    (FD02)
    # Run init.d scripts
    service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
    class main
    user root
    group shell
    oneshot

    (before FD02)
    # Run init.d scripts
    service sysinit /system/bin/logwrapper /sbin/run-parts /system/etc/init.d
    class main
    user root
    group shell
    oneshot

    So, if you are not sure whether a script in /system/etc/init.d is running on boot, you can simple add a script into this directory.
    Create a script using text editor in root explorer (don’t use ES File Explorer to edit the file). The character set used in es file explorer causes a problem to run the script. This is very important thing to remember. Even syntax and everything looks correct but the script would not run if it includes some hidden character which is not supported by shell. Be sure to use the editor supported by the shell.

    Example)
    Create a file 0test into /system/etc/init.d

    #!/system/bin/sh
    touch /data/local/tmp/initd_test.txt
    echo "Hello Android" > /data/local/tmp/initd_test.txt

    File permission is 755.
    If there’s some scripts in /system/etc/init.d, then backup those files to your sdcard for later use. Sometimes, it’s hard to find the script running result and that’s the reason why I’m testing it by simply writing a file.
    If you are done with creating a file, reboot your phone and go to the /data/local/temp directory.
    If the initd_test.txt file is there and content is “Hello Android”, then it means that any other scripts in the init.d directory will be executed during the boot and you don’t need to follow this guide any more.

    Workaround to run the init.d scripts during the boot:
    This workaround is nothing to do with Repacked or stock kernel. In another words, this workaround would work on both repacked and stock kernel.

    [Update] Again, if you don't need to test the scripts and only want to run someone else's tested script, then you can simply use sfhub's auto root tool to add the init.d support option.

    What you need:
    Download Script Manager – Smanager app from Google play store (it’s free) and install it.
    https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
    You must have busybox installed and have su permission.

    Steps to test the existing scripts:
    1. run Script Manager and open 0test script. Click the su icon and run.
    2. SManager will show the ‘exit code’ and any messages from the script. Be sure that you got the exit code ‘0’.
    3. Go to the directory /data/local/temp and check if file is create and has ‘Hello Android” in it.

    SManager is a great tool to verify the script syntax or any errors during the run. So if you have any init.d scripts, you can test those scripts before you start to run during the boot (this may prevent any boot loop or any issue).

    How to run the scripts during the boot using SManager:

    Steps to run the scripts during the boot:
    1. Test the scripts out completely before start to run on boot.
    2. From the SManager tool, select su and boot icon. Exit the application and reboot the phone.
    3. If you did not change the SManger config, then you will see the SManager log after the boot. Check if everything is fine. If the scripts run OK many times without any issue, then you can uncheck the option showing SManager log after the boot.

    This tool is great because you can run the scripts on both stock and repacked kernel. Also, you don’t need to put the scripts into /system/etc/init.d. You can place those files in any locations.

    Using this tool, currently I’m running Calk’s init.d tweaks without any problems.
    Calk’s tweaks are included in his FD02 Rom.
    My current phone is
    D710 + FD19 Stock Kernel + FD19 Rom + FD19 Modem with init.d scripts running

    ** This is an initial version and I’m going to add some more stuff in this thread. If you like this info and if this info is helpful for you in any way, please leave your feedback and consider to buy me a beer! **:D:D
    ** Because of sfhub's great job, it seems like I'm done in here. I hope you had enough information that you wanted **
    11
    What makes your phone even better?

    If you use the stock kernel, then you may want to replace the build.prop and gps.conf files with attached files (unzip it).
    These files are based on Calkulin's and Agat's Rom. Because I modified the files based on my demand, you may also want to change the files based on your situation.
    Because these files are not changed after the reboot, you can replace these files with any tweaked files that you want to use.
    (these files won't be changed by Kernel change but flashing rom will replace all these files)
    You can use gps.conf and init.d scripts with any rom but build.prop is dependent on the rom. This build.prop is based on FD19. So, be sure that you need to modify it if it's used on different rom.

    Attached file also includes the init.d scripts. These scripts are also same as on Calk's FD02 init.d scripts. I only changed few default option based on my requirement. So, if you want to original init.d scripts, please download Calk's FD02 v1.4 rom and extract the init.d scripts.

    Again, all thanks should go to Calkulin and Agat if you use their tweaks.
    Update1: Many thanks to sfhub for his auto root tools including init.d support

    Update2: I've added one more script file (attached) which can be used alone with previous one or standalone. All these tweaks are tested on my phone and working version. If you need to edit, be sure that it's properly edited and tested before adding it to the init.d.

    Update3: If you just want to use the script which runs init.d scripts during the boot without running sfhub's auto root tool, you may download the third attached file in here. Download, unzip it. Place the install-recovery.sh file to /system/etc with permission 550. This script will be executed by init.rc during the boot if you are on the stock kernel and this script will run the init.d scripts. If you are on the repacked kernel, which supports the init.d, this install-recovery.sh wouldn't do anything (init.d script will be executed by init.rc instead of this install-recovery.sh)
    4/26/12 sfhub's auto root tool is updated. Check the updated information from top thread update section. http://xdaforums.com/showpost.php?p=25120371&postcount=1

    Update4:I've found that some attached tweaks is preventing the ondemand governer changes. So, until I find the issue and fix it, I dropped the attached files (you are still able to download the install-recovery.sh script).
    edit:4/24/12 I fished testing Calk's CPU governor scripts and reposting it with minor changes. Adding my tweaks back to this post.

    Update5: Extreme battery saver tweaks
    I added one more zip file which can be used to save the battery life a lot more. If you are really concerning about your battery life and want to extend it, try this new set of tweaks. It's based on Calk's tweaks (I modified the values) and some other tweaks. If you want to use this, I highly recommend you to back up your old init.d files and replace those with the tweak files in init.d.zip files (unzip and move the files to /system/etc/init.d).

    [Guide] How to mod Calk's 2cpufreq_governor
    2cpufreq_governor script is quite simple/handy tool and it could replace many CPU governing tools. 2cpufreq_governor script can be used to define the CPU governor and change the options on selected governor.

    1. The governor selected in this script works as a master governor to control the cpu.
    Select the governor which one you want to use. In here, I used 'ondemand' as a default (value "1"). Only one governor works as master governor. If you want to use different governor, change the governor's value from "0" to "1" and reset the old governor's value "0".

    2. Govenors
    Conservative (default governor on original Calk's tweak)
    This governor uses more power and faster than ondemand. Under this governor, the following values are set.

    SAMPLING_RATE="35000"
    UP_THRESHOLD="75"
    DOWN_THRESHOLD="35"
    FREQ_STEP="15"

    If your kernel does not support this governor, it won't be enabled.

    ondemand and lazy
    If one of these governors is selected then the following values will be set -
    SAMPLING_RATE="50000"
    UP_THRESHOLD="75"

    interactive Performance Powersave smartass govenors
    Just enables the governor. No value changes by these tweaks.

    So, for most of you, only the thing you can do with this script is, just selecting the governor whichone you are going to use. If you want to change the detailed options then you can make those changes using 3cpufreq_screestate_scaling script.

    [Guide] How to mod Calk's 3cpufreq_screenstate_scaling
    3cpufreq_screenstate_scaling script can be used to decide how you want to deal with different phone states. Basically your kernel automatically controls most of it but if you want, you can also have a control over it using this script.
    This script can be used as standalone or in conjunction with 2cpufreq_govenor script. The difference between these two scripts are , 2 works as a master governor and 3 is only based on the phone's state.

    The things that you need to decide or know before using this script:

    awake mode
    If the phone is on "awake" status then script uses the "ondemand" cpu governor and you can change the governor as you want (AWAKE_GOVERNOR). Battery save profile only can be used during this "awake" mode.
    If the BATTERY_PROFILES_ON is set to "1", then script will use the various governor based on the phone's state and battery level (remaining percentage). For the most of the user, don't need to change the Calk's default settings. But in attached Calk's script, I changed a little to use only ondemand governor for any battery level.
    This change would be benificial for the user who is frequently use the phones (not in sleep or lazy mode). If you want to use Calk's original script, you can extract the script from Calk's FD02 Tweaked rom.
    As Calkulin already mentioned on this thread, if you are already using any CPI Tweak app like ANDROID OC, Over Click widget, Quick Lock, or SETCPU, then this script won't do anything during the awake mode and sleep mode.

    Battery profile 1 and battery profile2 define how your phone reacts based on the battery level and I changed the script a little to use the same ondemand governor regardless the battery level. Regardless of battery level, this script will force to use the maximum 1000000 CPU frequencies.
    If you want to differenciate the governor, you can change the governors, max CPU speed, and battery level values based on your demand. Battery profile 1 defines which governor will be used when battery level is above the value in BATTERY_PROFILE_1. Battery profile 2 defines which governor will be used when the battery level is below the value in BATTERY_PROFILE_2.
    When the battery level is between BATTERY_PROFILE_1 and BATTERY_PROFILE_2, then the values defined in MAX_CPU_SPEED, MIN_CPU_SPEED and GPU_SPEED will be used.

    sleep mode
    When your phone goest to sleep mode, this script defines which CPU governor could be used. If you want to change the default CPU governor values during the sleep mode, keep the SLEEP_GOVERNOR_ON value to "1". Otherwise, set the value to "0" (this is Calk's default).
    In there, the CPU Max speed will be changed to 800000 to save the battery during the sleep mode. But if you have any issues during the sleep mode, your can increase the SLEEP_MAX_CPU_SPEED value. If you want to save more battery, then you can decrease this value and this is what I'm goint to test for the next experimental test.

    This is not a complete tutorial for Calk's CPU tweak but I just wanted to give you the idea how CPU tweak works. For any time, if this tweak does not work as you intended, you can change the values and/or increase/decrease the frequencies and threshold values.
    The attached tweaks work on FD19 stock rom and kernel without any issues so far. But I'm not sure if it works on any other repacked kernel and customized roms. Before applying any tweaks, I recommend you to make full nandroid backup and test it. The risk of using these tweaks would be minimal at least you stay on with the values those are already tested and proven.

    (attached snapshot shows the CPU times based on two modified Calk's tweaks)
    (the last two snapshots are based on my extreme battery saver tweaks - CPU time & battery usage over about 10 hours)
    6
    I included an Experimental feature, in the Auto Root package, to add init.d support to any stock kernel

    I was wondering if anyone could help test it out:
    e4gtauto-lite-sfx.exe

    You need to be rooted.

    Just choose Option E (extra options), then Option E (Add init.d support)

    I've tested it on FD19 and EL29 and stock ROMs.

    I have *not* tested on any ROMs other than stock. It doesn't modify your kernel, so I don't anticipate anything bad would happen.

    I've also tested it in the case where you start with stock kernel, add init.d support, then later install a repacked kernel with builtin init.d support. In that case this will defer to the builtin init.d support in the kernel so the init.d scripts are not run twice. What that means is you don't need to remove this if you should later switch from stock kernel to stock kernel+CWM. If you want to remove it, just choose Option F (Remove init.d support)

    If you install a new ROM, then you will need to re-run this option to add init.d support (if the included kernel does not have builtin init.d support)
    5
    I know that I threw a script in init.d and set permissions to rwx/rwx/rwx and it worked fine. I'm not all that savvy on what 666 and 755 translate to in the terms if rwx but if set to rxw on all three it works like a charm. Sfhub or OP. I know its a little off topic but since you seem to know. How is that translated from rwx to ###

    r w x (4 2 1)

    owner group other

    So if you wanted the owner to be able to read, write, and execute the file and everyone else have no permissions allowed, you would do "chmod 700" (that 7 is comprised of 4+2+1)

    If you wanted owner, group, other to have read,execute permission (but not write permission) "chmod 555" (5 being 4+1)

    755 would be rwxr-xr-x
    5
    Yes


    Yes


    The scripts you run should have "execute" permission set. run-parts in busybox will only run scripts with execute permission set. run-parts is what the repacked kernels are using, so this is not a new requirement

    I notice you set your scripts to "chmod 666" so that might be why they aren't running. Try changing to "chmod 755".


    Either
    1) the permissions on your scripts are not set to have "execute" permission
    2) you don't have busybox installed in /system/xbin/busybox
    3) you are not running a stock kernel nor stock+cwm nor stock+cwm-rogue

    My guess is 1 or 2.

    With some feedback with testing of custom ROMs, in the latest upload, I actually removed the requirement for busybox to be installed, so if that is your issue, just download the newer one (the link in the original post was updated but I'm providing it here for convenience)

    e4gtauto-lite-sfx.exe

    Working like a charm without the SManager app. Permission set to 755. I'll update my thread with this info.
    Thank you guys!