Tested on G1 With JF 1.43 (
Fixed)
There is a file called init.rc that be found in /system/init.rc
This is loaded on Start-up
So here we go
1. Type
su
2.Type (This will make your system path writable) on your phone
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
3. On a system with the Android SDK Installed type
adb pull /system/init.rc c:/init.rc
NB Note the system there are 2 init.rc files /init.rc loads first the calls /system/init.rc
4. Add the line To the File (I use notepad++ to edit on windows because it saves with linux brakelines)
| Code: |
export PATH=/data/busybox:/usr/bin:/usr/sbin:/bin:/sbin:/system/sbin:/system/bin:/system/xbin:/system/xbin/bb:/data/local/bin
|
You can edit this to sute your needs. This is mine for busybox.
5. Type
adb push c:/init.rc /system/init.rc
6. Reboot your Phone
For some reason after the install su did not work i had to use /usr/bin/su
I will try to add an alis to fix this.