Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,401 Members 38,614 Now Online
XDA Developers Android and Mobile Development Forum

[Q] init.d script not working?

Tip us?
 
MuF123
Old
#1  
MuF123's Avatar
Senior Member - OP
Thanks Meter 51
Posts: 679
Join Date: Jul 2009
Default [Q] init.d script not working?

I'm trying to run "rm -rf /storage/emulated/0/documents" command from an init.d script, but it does not work.

Other commands (like echoing something) work, so permissions and other things are okay. Also when I run that script manually after booting it does what I want it to do.

Any idea why the same script won't remove that directory while booting and does remove it when running after boot?

Thanks!
 
MuF123
Old
#2  
MuF123's Avatar
Senior Member - OP
Thanks Meter 51
Posts: 679
Join Date: Jul 2009
I've tried adding sleep 30 before rm but still no result...
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes