FORUMS
Remove All Ads from XDA

[MODULE] Magisk init.d | Universal init.d enabler!

1,988 posts
Thanks Meter: 5,883
 
By androidexpert35, Account currently disabled on 26th March 2017, 09:37 AM
Post Reply Email Thread


Hi guys! i-m back here and today i've just written a simple Magisk module here for all devices. This enables init.d script running after system boot systemless-ly!






How it works

• This module enables init.d script folder in /system/etc/init.d even if your kernel doesn't support it by default!
• To use it just place your script in /system/etc/init.d and set permissions 0777. This is also compatible with all performance mods zip that uses init.d scripts, like "NITRO X SPARK".
• All your script in init.d folder will be run after system boot




Requirements

• Magisk v11.0+
Busybox (Magisk in-built one is also accepted)




GitHub repo: https://github.com/androidexpert35/Magisk-init.d


Attached Files
File Type: zip Magisk_init.d_Enabler_by_androidexpert35.zip - [Click for QR Code] (6.9 KB, 15808 views)
The Following 22 Users Say Thank You to androidexpert35 For This Useful Post: [ View ] Gift androidexpert35 Ad-Free
 
 
26th March 2017, 05:08 PM |#2  
ahrion's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,081
 
More
Why would you need init.d when you have post-fs-data and late start service?

You might as well just make a script to copy anything from init.d to post-fs-data.d.
The Following 3 Users Say Thank You to ahrion For This Useful Post: [ View ]
27th March 2017, 12:06 PM |#3  
OP Account currently disabled
Flag Taranto
Thanks Meter: 5,883
 
Donate to Me
More
Module can be really useful for all the mods (old or not) that still place scripts in /system/etc/init.d. Wich is really easier than copy all the files from mod zip and place them in post-fs-data.d also you have to rename them in ".sh" or they won't be executed. While on my init.d folder all the files you place, will be executed as shell.

Inviato dal mio E6653 utilizzando Tapatalk
The Following User Says Thank You to androidexpert35 For This Useful Post: [ View ] Gift androidexpert35 Ad-Free
27th March 2017, 12:36 PM |#4  
Didgeridoohan's Avatar
Recognized Contributor
Flag Gothenburg
Thanks Meter: 6,711
 
Donate to Me
More
Quote:
Originally Posted by androidexpert35

also you have to rename them in ".sh" or they won't be executed.

Incorrect. Any files placed in post-fs-data.d or service.d will be executed, no need for the .sh file ending.
27th March 2017, 02:12 PM |#5  
OP Account currently disabled
Flag Taranto
Thanks Meter: 5,883
 
Donate to Me
More
Quote:
Originally Posted by Didgeridoohan

Incorrect. Any files placed in post-fs-data.d or service.d will be executed, no need for the .sh file ending.

Still, classic mod zips doesn't support post-fs-data.d.

Inviato dal mio E6653 utilizzando Tapatalk
28th March 2017, 11:57 AM |#6  
Junior Member
Thanks Meter: 3
 
More
Magisk say this is not module

Sent from my IM-A910S using Tapatalk
28th March 2017, 12:01 PM |#7  
OP Account currently disabled
Flag Taranto
Thanks Meter: 5,883
 
Donate to Me
More
Quote:
Originally Posted by ngtung84

Magisk say this is not module

Sent from my IM-A910S using Tapatalk

What version of Magisk? 🤔

Inviato dal mio E6653 utilizzando Tapatalk
28th March 2017, 12:03 PM |#8  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by androidexpert35

What version of Magisk? 🤔

Inviato dal mio E6653 utilizzando Tapatalk

Magisk 11.6

Sent from my IM-A910S using Tapatalk
28th March 2017, 12:05 PM |#9  
Didgeridoohan's Avatar
Recognized Contributor
Flag Gothenburg
Thanks Meter: 6,711
 
Donate to Me
More
Quote:
Originally Posted by androidexpert35

What version of Magisk? 🤔

Inviato dal mio E6653 utilizzando Tapatalk

Your zip is packed wrong... You need the Magisk files to be in the root of the zip.
28th March 2017, 09:49 PM |#10  
OP Account currently disabled
Flag Taranto
Thanks Meter: 5,883
 
Donate to Me
More
The problem is that I made a mistake in packing the zip... Now it has been fixed and a anew zip has been uploaded! Sorry guys. 🙄

Inviato dal mio E6653 utilizzando Tapatalk
4th April 2017, 12:57 AM |#11  
Senior Member
Thanks Meter: 17
 
More
I have a bug
The files in system/etc/init.d
Get deleted every time I reboot
I use it in Stock marshmallow Rom (xperia xz) with Magisk v12
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes