Bash script init.d not working - Galaxy S 5 Developer Discussion [Developers Only]

hello there,
well have a problem with my init.d script. One is working correctly (test log script) but not the other (autocleaner script) and i can't understand why.
Anybody can help me ?
Thanks.

WILMANS2M said:
hello there,
well have a problem with my init.d script. One is working correctly (test log script) but not the other (autocleaner script) and i can't understand why.
Anybody can help me ?
Thanks.
Click to expand...
Click to collapse
You need the log that is in "/data"

Related

Modules for Gingerbread (cifs/ext4)

Because of the newer kernel for Gingerbread (2.6.35.7) we need newer modules for cifs and ext4. Compiled them:
download here: http://xda.richardtrip.org/?dir=tab/Gingerbread/modules
Before you ask.... a tun.ko is not needed (compiled in the kernel).
Correct me if im wrong but will these modules give us EXT4 support on ginger ?
crisvillani said:
Correct me if im wrong but will these modules give us EXT4 support on ginger ?
Click to expand...
Click to collapse
insmod /system/lib/modules/jbd2.ko
insmod /system/lib/modules/ext4.ko
and it should work.
how to?
i have kernel 2.6.32.9
hmm .. i doubt about it ... the rom is very fast and as far its good , why do i need to go for ext4 if the ext4 suck the battery life ?
k0sh said:
hmm .. i doubt about it ... the rom is very fast and as far its good , why do i need to go for ext4 if the ext4 suck the battery life ?
Click to expand...
Click to collapse
I have never heard of a file system sucking the battery life. If anything, FAT32 would be the worst used in practice today.
richardtrip said:
insmod /system/lib/modules/jbd2.ko
insmod /system/lib/modules/ext4.ko
and it should work.
Click to expand...
Click to collapse
So really dumb, newb ( but learning so much so quickly ) question. Can I get my CIFS support back to stream videos on Overcome 2.0.0 if I use
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/slow-work ???
( think slow-work is needed from research )
( Settings ->About Device->Kernel Version 2.6.35.7 [email protected] #2 )
fidjit said:
So really dumb, newb ( but learning so much so quickly ) question. Can I get my CIFS support back to stream videos on Overcome 2.0.0 if I use
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/slow-work ???
( think slow-work is needed from research )
( Settings ->About Device->Kernel Version 2.6.35.7 [email protected] #2 )
Click to expand...
Click to collapse
you need to load slow-work.ko first.
please,
howto install these modules on the new GB roms?
Wow. This is great now i have working cisco vpn.
Thank you very much
Sent from my GT-P1000 using XDA App
bartito said:
please,
howto install these modules on the new GB roms?
Click to expand...
Click to collapse
Download the modules to /system/lib/modules/ (or anywhere really, just not the SD card) then load them using insmod. If you need them of every boot you can use an init.d script to load them automatically
For those of you who are inept, please find a link below to the same modules inside a CWM flashable zip.
CLICK ME!
TheGrammarFreak said:
Download the modules to /system/lib/modules/ (or anywhere really, just not the SD card) then load them using insmod. If you need them of every boot you can use an init.d script to load them automatically
Click to expand...
Click to collapse
Unfortunatly, init.d doesn't work in current version...
Tried to manually load as per instructions.
Didn't seem to do anything to assist my cifs manager. Figured I'd go back to my nandroid backup I'd made just before. Stuck on Samsung screen. on reboot after restore
Had to do a restock and rebuild. As say in previous post learning a lot ..........like always take an Nandroid
Think I'll be leaving this to the experts and wait for a new already compiled kernel
fidjit said:
Tried to manually load as per instructions.
Didn't seem to do anything to assist my cifs manager. Figured I'd go back to my nandroid backup I'd made just before. Stuck on Samsung screen. on reboot after restore
Had to do a restock and rebuild. As say in previous post learning a lot ..........like always take an Nandroid
Think I'll be leaving this to the experts and wait for a new already compiled kernel
Click to expand...
Click to collapse
Cifs mananager doesn't help you. But it is simple to do that manually:
$su
#busybox insmod /system/lib/modules/easy-work.ko &&
#busybox insmod /system/lib/modules/cifs.ko
#mount -r -t cifs -o <YourShareName,login,password> <MountingPoint>
I use GscriptLite for that.
acolwill said:
For those of you who are inept, please find a link below to the same modules inside a CWM flashable zip.
CLICK ME!
Click to expand...
Click to collapse
so if i flash this via cwm it will give me ext4?
acolwill said:
For those of you who are inept, please find a link below to the same modules inside a CWM flashable zip.
CLICK ME!
Click to expand...
Click to collapse
Sorry for being inept, but that doesn't make CIFS Module to work
--
Enviado desde mi móvil
maxtcee said:
so if i flash this via cwm it will give me ext4?
Click to expand...
Click to collapse
it just copy the *.ko to your /lib/module,you still have to add script inside init.d to make it load automatically when boot
init.d dobt supported in gb, seems to me
howto make these modulez autoloaded without init.d?
bartito said:
init.d dobt supported in gb, seems to me
howto make these modulez autoloaded without init.d?
Click to expand...
Click to collapse
CF-Root will run scripts from init.d. Overcome includes CF-Root.
Sent from my Galaxy Tab. Now that's dedication

Make "Disable HW Overlays" permanent

Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
I don't think that there's an option to do that. But ticking the option every boot isn't all that hard.
Sent from my Desire HD using xda app-developers app
Agreed...but if there is a better way then I'd be very keen to learn of it.
tedrogers61 said:
Agreed...but if there is a better way then I'd be very keen to learn of it.
Click to expand...
Click to collapse
+1 same question on Jellytime R15 !
jean019 said:
+1 same question on Jellytime R15 !
Click to expand...
Click to collapse
On the JT R15 developer thread, someone has noted that it is a known issue.
I'm not sure whether they mean it is a known issue that the HW Overlay box is unchecked after reboot, or whether the graphical issues with checking Disable HW Overlays solves is an issue.
However, people are talking about it, and that pleases me.
tedrogers61 said:
Hi. Does anyone know how to make the "Disable HW Overlays" option found on some ROMs permanently checked / persistent after reboot? I'm using JellyTime R13 on my DHD. Thanks.
Click to expand...
Click to collapse
+1 :'(
Also looking for a permanent solution for my Inspire 4G, is frustrating to run the camera or play a video and have the phone restart cause I forgot to switch the setting last boot.
This will work!
http://forum.xda-developers.com/showthread.php?t=1904827
Sorry wrong place
sorry wrong place
please remove
Anyone try this ?
Permanent Disable Hw overlays Enjoy Script
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Code:
#!/system/bin/sh
(while :
do
sf=$(service list | grep -c "SurfaceFlinger")
if [ $sf -eq 1 ]
then
service call SurfaceFlinger 1008 i32 1
break
else
sleep 2
fi
done
) &
:fingers-crossed: enjoy
sgatechwork said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Code:
#!/system/bin/sh
(while :
do
sf=$(service list | grep -c "SurfaceFlinger")
if [ $sf -eq 1 ]
then
service call SurfaceFlinger 1008 i32 1
break
else
sleep 2
fi
done
) &
:fingers-crossed: enjoy
Click to expand...
Click to collapse
Always make sure you give credit to the original dev. I wrote this script
titanic_fanatic said:
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
:laugh: opps!! Credit Goes To @titanic_fanatic :silly:
script didn't work on my TX 4.3. please help
shaktishekhar said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
:fingers-crossed: enjoy
Click to expand...
Click to collapse
Thanks man! i was just looking for the shell cmd but this works ! *on android 7.1.2 initd. d needed to be emulated....i dont beleive its the default "load on boot" protocol any longer but emulation via kernel auditor seems to do the trick. Doesnt matter as long as i dont have to manually set check the option. Appreciate the work.
titanic_fanatic said:
Disable Hardware Overlays permanently Using This Script Put into init.d Folder or else use Script manager or something like that which will run this script on boot
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
Dear @titanic_fanatic, can I kindly ask you if you can adapt your script to make the Skia GPU renderer on Android Oreo applied on boot without it resetting every time? Thank you for the original idea anyway, it was brilliant, I use always your script
Why should I do that? Can you please explain it? ?
remained said:
Why should I do that? Can you please explain it? ?
Click to expand...
Click to collapse
Please how can I enable 4x MSAA using a shell script on android?
titanic_fanatic said:
Always make sure you give credit to the original dev. I wrote this script
Click to expand...
Click to collapse
Still works on Galaxy S5 Lineage OS 16 SmartPack kernel (oc to 2.6gHz btw) and manager. Thanks! Bookmarked this notably good post .. :good:
Works fine on a Poco M3 running A11. I've attached a basic Magisk module with titanic_fanatic's script, since that'd probably be easier to use for most people.

Init.D Not Working

Hi there guys! I'm currently using CM9 with the following tweaks/mods/kernel that you can see on my signature right now and I'm having problems with init.d not working. I hope you can help me guys! Thanks!
1. Which init.d script is not working, exactly? Only one or several? Or all of them?
2. Post here the result of:
Code:
ls -la /system/etc/init.d
allkpop said:
Hi there guys! I'm currently using CM9 with the following tweaks/mods/kernel that you can see on my signature right now and I'm having problems with init.d not working. I hope you can help me guys! Thanks!
Click to expand...
Click to collapse
The init.d should be, the ROM itself is supporting init.d ... Any more details?
I upgraded to CM9 RC3 and init.d's working fine right now. I saw on the changelog that it includes init.d scripting fixes so I guess RC2 has a faulty one.
Hi there guys! I'm having some problems again with init.d not working. It only seems to be triggered whenever I install a new custom kernel by flashing it, wiping the dalvik cache and cache then fixing the permissions. The problems is, whenever I check Seeder to see if it's working or not via Terminal Emulator. Seeder says it's off although it's set to run at every boot. The things that I've tried to fix it is by restoring the /system partition of my RC6 backup with no mods/scripts or custom kernels installed. How do I prevent it from happening again as doing all those things are time consuming.
Can anyone help me?
allkpop said:
Can anyone help me?
Click to expand...
Click to collapse
Use pimp my rom,for init.d..or you install rom with pristine.
Sent from my GT-I8150 using xda premium

Cache Pressure

I'm currently using PA2.99 for the primou and I have the V6 Supercharger script installed, but the vfs_cache_pressure doesn't seem to be applying, in the script it says 10 but it always boots at 50.
What could be causing this? I'm sure there are no other init.d scripts that change this value, what else could the cause be?
Thanks!
RedGoblinz said:
I'm currently using PA2.99 for the primou and I have the V6 Supercharger script installed, but the vfs_cache_pressure doesn't seem to be applying, in the script it says 10 but it always boots at 50.
What could be causing this? I'm sure there are no other init.d scripts that change this value, what else could the cause be?
Thanks!
Click to expand...
Click to collapse
use a script manager
RedGoblinz said:
I'm currently using PA2.99 for the primou and I have the V6 Supercharger script installed, but the vfs_cache_pressure doesn't seem to be applying, in the script it says 10 but it always boots at 50.
What could be causing this? I'm sure there are no other init.d scripts that change this value, what else could the cause be?
Thanks!
Click to expand...
Click to collapse
You can try and use:
- http://forum.xda-developers.com/showthread.php?t=2145133
and
- http://forum.xda-developers.com/showthread.php?t=2113150
For my hov, working like a charm... - recommended values...
Hope it helps :fingers-crossed:

[Q] help help help

Hi I know I ask a lot of questions but I'm working on a ROM based off another ROM yes the creator let me use it but on to the question now I'm trying to add some build.prop/init.d scripts but it doesn't have init.d but it does have busybox so does anyone know how to add it with out exstacting boot.img and kernel pose help
hey
dsilx said:
Hi I know I ask a lot of questions but I'm working on a ROM based off another ROM yes the creator let me use it but on to the question now I'm trying to add some build.prop/init.d scripts but it doesn't have init.d but it does have busybox so does anyone know how to add it with out exstacting boot.img and kernel pose help
Click to expand...
Click to collapse
d,
you have two choices
1 http://forum.xda-developers.com/showthread.php?t=2287540
2 switch to a kernel/boot.img with init.d support already enabled
3 get osm0sis' AIK suite http://forum.xda-developers.com/showthread.php?t=2073775
[bleeping kickass tool!]
m
thank u so much
moonbutt74 said:
d,
you have two choices
1 http://forum.xda-developers.com/showthread.php?t=2287540
2 switch to a kernel/boot.img with init.d support already enabled
3 get osm0sis' AIK suite http://forum.xda-developers.com/showthread.php?t=2073775
[bleeping kickass tool!]
m
Click to expand...
Click to collapse
Thank u so much I wasn't thinking of doing any of those but ima try them before I revert to using the previous version @moonbutt74 u have been so much help since I started this ROM

Categories

Resources