|
#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:
__________________
-He who laughs last didn't tell the joke Qualifications Bachelors Degree in Computer Science & Math Unix System Administrator Software/Web Developer - Java/C/C++/Intel Assembly/Lisp/Php/Javascript/Html/Jquery/Ajax/Json/Xml/CSS If you like what I do, please consider --> DONATING <-- to my efforts You can also follow me on TWITTER for the latest updates or ask questions there |
|
#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
__________________
-He who laughs last didn't tell the joke Qualifications Bachelors Degree in Computer Science & Math Unix System Administrator Software/Web Developer - Java/C/C++/Intel Assembly/Lisp/Php/Javascript/Html/Jquery/Ajax/Json/Xml/CSS If you like what I do, please consider --> DONATING <-- to my efforts You can also follow me on TWITTER for the latest updates or ask questions there |
|
#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 @detoxcz If you like my work, feel free to buy me some donut-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
__________________
-He who laughs last didn't tell the joke Qualifications Bachelors Degree in Computer Science & Math Unix System Administrator Software/Web Developer - Java/C/C++/Intel Assembly/Lisp/Php/Javascript/Html/Jquery/Ajax/Json/Xml/CSS If you like what I do, please consider --> DONATING <-- to my efforts You can also follow me on TWITTER for the latest updates or ask questions there |
|
#8
|
||||
|
||||
|
Quote:
EDIT: Using the symlink works fine for now. Thank you!
__________________
Recovery:RA-dream-v1.3.2_BKMOd_1 / LIKE SWITCHROM? YOU'LL LOVE BART-thanks devsk & dumfuq!! / Rogro82's and Irrenhaus' modified Launcher / GDE=360°s of fun!! 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 | |
|
|