Post Reply

[Q] bash breaks init.d

29th May 2014, 06:34 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
3 posts
Join Date:Joined: May 2014
Hi,

I wanted to have bash as standardshell, so I replaced /system/bin/sh with a symlink to bash. That worked pretty well except it didnīt load the configuration file. So i replaced it with this script:
Code:
#!/system/bin/bash
exec /system/bin/bash --rcfile /etc/profile
this works correctly, but it seems to break init.d support. At least it no longer mounts my second sdcard partition (for link2sd).
does anybody no how to fix this?

cheers,
Vincent
29th May 2014, 07:40 PM   |  #2  
Account currently disabled
Flag Dallas
Thanks Meter: 108
 
485 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by Vincent F.

Hi,

I wanted to have bash as standardshell, so I replaced /system/bin/sh with a symlink to bash. That worked pretty well except it didnīt load the configuration file. So i replaced it with this script:

Code:
#!/system/bin/bash
exec /system/bin/bash --rcfile /etc/profile
this works correctly, but it seems to break init.d support. At least it no longer mounts my second sdcard partition (for link2sd).
does anybody no how to fix this?

cheers,
Vincent

i think its because you replaced a binary with a script and init.d fed code straight to the binary. whereas the script you replaced it with has no entry point for the init.d code.
29th May 2014, 09:40 PM   |  #3  
OP Junior Member
Thanks Meter: 1
 
3 posts
Join Date:Joined: May 2014
Quote:
Originally Posted by Lgrootnoob

i think its because you replaced a binary with a script and init.d fed code straight to the binary. whereas the script you replaced it with has no entry point for the init.d code.

Thanks, that solved it. for all with the same problem heres the code:
Code:
#!/system/bin/bash
exec /system/bin/bash --rcfile /etc/profile $*
cheers,
Vincent
The Following User Says Thank You to Vincent F. For This Useful Post: [ View ]
31st May 2014, 05:29 AM   |  #4  
Account currently disabled
Flag Dallas
Thanks Meter: 108
 
485 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by Vincent F.

Thanks, that solved it. for all with the same problem heres the code:

Code:
#!/system/bin/bash
exec /system/bin/bash --rcfile /etc/profile $*
cheers,
Vincent

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank