|
#1
|
|||
|
|||
|
hi,
i compiled bash and added support for executing file /sdcard/bash_profile, so you can set PATH and PS1 variables there, for example... if someone is interested, there it is for download http://pub.mzet.net/bash for become default shell copy bash to /system/bin/bash a then run: Code:
cd /system/bin chmod 0755 bash mv sh sh0 ln -s bash sh |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
__________________
My Qualifications Bachelors Degree in Computer Science & Math Unix System Administrator Software/Web Developer - Java/Java EE 5/Java EE 6/C/C++/Intel Assembly/Lisp/PHP/JSP/Javascript/HTML/JQuery/AJAX/JSON/XML/CSS For issues with King Eclair please go to this POST I have set up. **Updated: 02/03/2010** http://forum.xda-developers.com/show...1&postcount=70 Contact Me Follow me on TWITTER for the latest updates. |
|
#3
|
|||
|
|||
|
On a side note, we should be able to add the following to init.rc rather than symlinking sh -> bash
export SHELL /system/bin/bash
__________________
My Qualifications Bachelors Degree in Computer Science & Math Unix System Administrator Software/Web Developer - Java/Java EE 5/Java EE 6/C/C++/Intel Assembly/Lisp/PHP/JSP/Javascript/HTML/JQuery/AJAX/JSON/XML/CSS For issues with King Eclair please go to this POST I have set up. **Updated: 02/03/2010** http://forum.xda-developers.com/show...1&postcount=70 Contact Me Follow me on TWITTER for the latest updates. |
|
#4
|
|||
|
|||
|
here is example of my /sdcard/bash_profile
Code:
PATH=/sbin:/system/xbin/bb:/system/xbin:/system/bin
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi
|
|
#5
|
|||
|
|||
|
strange. is this variable used? when i execute "echo $SHELL" it writes "/bin/sh", but it does not exists, it should write /system/bin/sh, i think
|
|
#6
|
||||
|
||||
|
"/bin/sh" is ok. It's in boot.img...(respectively in ramdisk). Check out some ramdisk
![]()
__________________
Follow me on twitter @TadeasKriz If you like my work, feel free to buy me some eclair-s
|
|
#7
|
|||
|
|||
|
Ya I noticed that after posting my last message. Perhaps it's not used. I'll try and find some time to change that in init.rc and reboot to see if it takes effect
__________________
My Qualifications Bachelors Degree in Computer Science & Math Unix System Administrator Software/Web Developer - Java/Java EE 5/Java EE 6/C/C++/Intel Assembly/Lisp/PHP/JSP/Javascript/HTML/JQuery/AJAX/JSON/XML/CSS For issues with King Eclair please go to this POST I have set up. **Updated: 02/03/2010** http://forum.xda-developers.com/show...1&postcount=70 Contact Me Follow me on TWITTER for the latest updates. |
|
#8
|
||||
|
||||
|
Quote:
EDIT: Using the symlink works fine for now. Thank you!
__________________
Quote:
Last edited by overground; 17th July 2009 at 11:53 PM.. |
|
#9
|
|||
|
|||
|
Very cool. Thanks for giving us bash for Andriod! While we're thinking of low level tools, anyone have a version of busybox with colorized 'ls'?
![]() Anyone know when /system/sd is mounted in the cyano ROMs? If it's available early enough, we could copy bash to /system/sd and avoid taking up 2.5MB in /system/bin. ![]() Last edited by ttabbal; 18th July 2009 at 12:11 AM.. |
|
#10
|
|||
|
|||
|
it's too big, because everything is built statically
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|