I have problem runing script from init.d folder. Script maked by link2sd work, but every script i add wont run on boot.
I set same permision liki in link2sd script... any idea?
when try to open script from init.d folder with root explorer there is no txt. :/
Have you tried script manager?
sent from my gt540 mur4ik RC0 806mhz
yes, it`s work when run script manueli... but not working when set run on boot.
goto data/local and edit the userinit and put this code in it
sh /system/etc/init.d/scriptname
that should force the script to run.
i dont have userinit in data/local
just to create it, or...?
yes just create a userinit.sh file then put the command in it
not working, strange...
can you upload the script you are trying to run so i can do some tests for you?
yes, it`s simple script to enable swap on swap partition. work fine when run it with gscript, script manager... but i want to run it auto on boot.
edit the script to look like this
Code:
#!/system/bin/sh
#
# enable swap on ext partition
#
echo 30 > /proc/sys/vm/swappiness
swapon /dev/block/mmcblk0p3
noup, mmcblk0p3: no such file or directory.
have you partitioned your sdcard properly and what way did you do it?
yes, i partitioned it with recovery. swap work fine when i run script manuele, or run comand with terminal. problem is than script wont run on boot, not only this one, v6 super charger wont run eather.
--------
i forgot, i use greendroid 2.0 and 666 infernal kernel
god thats odd what rom are you using mur4iks,joes or one of the softmod GB
greendroid 2.0 and 666 infernal kernel
this kernel hava init.d suport... i think.
it should support swap ok because init.d folder belongs to busybox which the ROM has i would say for you to get the best from your phone is to upgrade to a gingerbread rom preferably CM7 as it supports swap straight fro boot and it also allow V6 SuperCharger to run properly i can help with a 2.1 rom because i only had 2.1 on my phone for 30seconds before flashing a 2.2 CM6 rom.
i use CM7 before (mur4iks M6 was last i try), but every day there was some little bug, and i have big problem with battery, gps... so i went back to 2.1.
tnx for try helping me.
no problem sorry i couldn't help more.
Xt907 rooted. Ss installed. I created a rom slot, backed up, and installed to stock slot.
Everything works fine but after a few reboots I lose init.d. I'm using rage-m, I update busybox and supersu after every install, and i use xposed (xblast, gravity box, and xui).
Any ideas? I lose the custom governors and schedulers as well.
Because I was losing the governors I thought somehow the kernel itself was being replaced somehow. Upon further inspection, I found that the governors and schedulers were actually an init.d script with library modules (which makes sense considering they were lost with init.d). After some trial and error I discovered that upon updating the included busybox (1.21.0) with busybox pro to the xbin or bin folder I will lose init.d support. Really curious as to why that is. Anything to do with symlinks?
infinite.galaxi said:
Xt907 rooted. Ss installed. I created a rom slot, backed up, and installed to stock slot.
Everything works fine but after a few reboots I lose init.d. I'm using rage-m, I update busybox and supersu after every install, and i use xposed (xblast, gravity box, and xui).
Any ideas? I lose the custom governors and schedulers as well.
Click to expand...
Click to collapse
You can try to install Pimp my ROM and turn init.d on
It seems that Busybox 1.22.1 is the culprit. Reverting to 1.21.1 leaves init.d intact. Thanks ^ tho pimp my rom looks cool. I want dat Bravia doe. v4a ftw!
I am using stock kernel and Hyperion9 rom. I want to add init.d support. I dont want to install any app like Universal Init.d for init.d support.
I have created init.d directory in /system/etc & sysinit file in /system/bin , as mentioned in other xda threads.
But When I add '/system/bin/sysinit' or 'exec /system/bin/sysinit' to init.rc and init.bcm21553.rc. Then I repack & flash the modified boot.img.
Nothing happens. Scripts present in init.d donot run on boot. I have checked the file permissions. All are OK.
Please guide me, Where should I add '/system/bin/sysinit' ?
I'm running rooted 2.1 stock. Is there any way of getting this to work with init.d? I'm trying to get AFWall+ to autostart and apply on boot, and selecting for it to prevent leaks on startup appears to be the only way of doing it, but this works with an init.d script.
Hello guys,
i would like to use the App Trickster Mod on my S8, but the app canĀ“t detect Busybox in systemless mode. On my S7 i used it with SuperSu and Busybox in System Mode.
Any chance to install Busybox in System mode? I have try "Nemesis Rom 1.0", in this script he installed Busybox also in system mode and it works for Trickster, but the Rom disabled my W Lan and i was go back to my old settings (i think its only a wrong boot.img what he flash).
So i search for Busybox in system mode + init.d script.
I have found the fail, Trickster Mod wont work with newest Busybox version. So i have installed one build bevor and now it works. Can be closed.