New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
xmRipper
Old
#1  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
Default [Q] My init.d script does not work, why?

Hello,

I want to change my voodoo colors at boot, so I made a script in init.d folder:

Code:
#!/system/bin/sh

echo 2447339790 >/sys/devices/virtual/misc/voodoo_color/red_multiplier

echo 2159029280 >/sys/devices/virtual/misc/voodoo_color/green_multiplier

echo 2782492160 >/sys/devices/virtual/misc/voodoo_color/blue_multiplier

echo -14 >/sys/devices/virtual/misc/voodoo_color/red_v1_offset

echo -17 >/sys/devices/virtual/misc/voodoo_color/green_v1_offset

echo -18 >/sys/devices/virtual/misc/voodoo_color/blue_v1_offset
And here is my init.d folder : http://i.imgur.com/nhkdy.png , 99voodoo is my script.

When I paste this codes to android terminal emulator, it is working flawlessly.

But it does not work in init.d folder. Tried different roms which support init.d scripting, but no luck.
What is wrong with it? Can anyone help?

Thanks.
 
demo23019
Old
(Last edited by demo23019; 5th January 2012 at 07:52 PM.)
#2  
demo23019's Avatar
Senior Member
Thanks Meter 608
Posts: 2,162
Join Date: Dec 2007
I had the same issue with couple of kernels not sure why im prety sure they even support (Eugene and glados)
you have to set full permissions on the script also but still didn't work for me

I gave up and just used ROM toolbox and made it run at startup works no problem
HTC Hermes
HTC Touch Diamond
HTC Nexus One
Samsung Vibrant

__________________

http://img846.imageshack.us/img846/7262/sigpic7292412gif.png
 
xmRipper
Old
#3  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
There must be a solution. What am I doing wrong!?
 
Hostile89
Old
#4  
Senior Member
Thanks Meter 20
Posts: 104
Join Date: Nov 2010
Location: Clearwater, Fl
Do you have Busybox installed?
 
xmRipper
Old
#5  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
Quote:
Originally Posted by Hostile89 View Post
Do you have Busybox installed?
Yes, preinstalled with the rom I've been using:
http://forum.xda-developers.com/show....php?t=1397358
features "root, busybox, zipalign, Bash, init.d scripts ... etc".
 
xmRipper
Old
#6  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
Any help? No solution?
 
suksit
Old
#7  
suksit's Avatar
Senior Member
Thanks Meter 83
Posts: 410
Join Date: Dec 2010
What is your ROM and kernel combination?
 
xmRipper
Old
#8  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
I was using Aosp+ Rom and ICUP-Speedy-3 kernel.

Now, I have just flashed CyberGR rom. Comes with GLaDOS 2.7 kernel. Feature list says "Init.d scripts support", but no luck for me. My script doesn't work with this rom too. What is wrong with it :S
 
xmRipper
Old
#9  
xmRipper's Avatar
Senior Member - OP
Thanks Meter 28
Posts: 448
Join Date: May 2010
Location: Istanbul

 
DONATE TO ME
I found the solution.

I was trying to move my script to init.d folder manually via RootExplorer app.
But pushing the same file via adb just worked.

Thanks to this: http://forum.xda-developers.com/show....php?t=1424032

The Following User Says Thank You to xmRipper For This Useful Post: [ Click to Expand ]

XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more