Questions tagged [init.d]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
840 views

ifup/ifdown scripts

I am fiddeling with some network related things and want to try them on Android too. In Ubuntu it was quite easy to run some commands if an interface (eth0 or wlan0) goes up or down by simply adding ...
3
votes
1answer
1k views

Init.d script trouble shooting

I'm trying to run an init.d script when my rom boots to disable system services, and they aren't running. The script is as follows #!/system/bin/sh su -c pm disable com.google.android.gms/.update....
2
votes
0answers
42 views

Empty ramdisk in boot.img

I have a copy of the boot.img from my HTC M8 one. I unpacked it and discovered that it is mostly empty directories and one binary "init" file. I was hoping to find an init.rc in there. Any ...
1
vote
0answers
95 views

Can't install apk using sh script and init.d app

I'm trying to install apk when the device is booting. I wrote shell script to install apk: #!/system/bin/sh pm install /data/local/tmp/MagiskManager-v7.1.1.apk Unfortunately, when I enters the shell (...
1
vote
0answers
82 views

Why I can't remove directory using mv?

So I want to use bindfs that require the mounted directory to be empty. Then I'm trying to move WhatsApp (Internal storage) contents to external SD card sdcard="/mnt/media_rw/6DE8-1BC6/" mv /...
1
vote
1answer
615 views

Adding custom bootup script to Android-x86 Nougat

I've been happy using Android-x86 Nougat on my system. Thanks to everyone who made that work. I'm now trying to make one small change which is that I want to run a custom init script (a shell script) ...
1
vote
1answer
205 views

Block internet access before firewall starts at boot

I have an old Android phone with Ice Cream Sandwich and DroidWall as a firewall, which makes sure that apps can't use the 3G unless I enable it for that app. DroidWall starts on boot but there is a ...
1
vote
0answers
764 views

AutoMount ext2 SD-card on Huawei U8350 (Android 2.2.2)

On the Huawei U8350 (Android 2.2.2) the init scripts all appear to be in the root partition -- which actually is a ram disk (initramfs), so any changes to it aren't persistent across reboots. Is ...
0
votes
0answers
36 views

Init.d scripts not executed

I use an old Samsumg J120W running Android 6.0.1 that seems not to come with init.d. I have installed init.d using Ruyinferno's Universal Init.d Support. This claims init.d is working as intended: ...
0
votes
0answers
28 views

on a termux app terminal access where should I put my own runnit service to start on phone reboot?

I wrote a simple service like this one: http://smarden.org/runit/runscripts.html#apache2 $ cat start_node_exporter #!/data/data/com.termux/files/usr/bin/sh termux-wake-lock . $PREFIX/etc/profile /...
0
votes
0answers
38 views

How does init knows when to relaunch a process?

I know the Zygote listens to a socket in /dev/socket/zygote in order to know when to fork a new process. I want to know how init usually does it. I have a persistent process (not service) X whose ...
0
votes
1answer
175 views

Init.d Script won't work to keep value

I was try to change some value like vm, lowmemorykiller, adj, and net using shell script, then save it to init.d folder and execute it as root. after reboot, it always back to default. And i was ...
0
votes
1answer
1k views

Link2SD Mount Script Error. [4]: can't create /system/etc/init.d/11link2sd: > Not a directory

I want to move some of my apps from my internal memory to my extsdcard. I followed this to do so(I'm not using Marsh Mellow so skip the first part of the guide). When I installed Link2SD and rebooted ...
0
votes
0answers
464 views

Is it possible to start an infinite loop within init.d?

I would like to create an init.d script to control the fan of my Odroid XU3 under Lollipop 5.1.1, CyanogenMod 12.1. I already make one on linux which is working well and would like to port it to ...
-1
votes
1answer
1k views

It seems my device doesn't have init.d support, but I have a bunch of init.* files. Can I use the same approach somehow?

-rwxr-x--- 1 root root 3265 Jan 1 1970 init.class_main.sh -rwxr-x--- 1 root root 1730 Jan 1 1970 init.mdm.sh -rwxr-x--- 1 root root 3347 Jan 1 ...