Quote:
Originally Posted by aditya3098
you know, kt comes with /bin/bash built-in
|
As I understand this implementation of busybox, bash is just a synonym for sh, so scripts can include either shell on the shebang line without failure.
Now, the reason I chose to do this in shell script is BECAUSE it is the WORST POSSIBLE tool for the job, but also has UNIVERSAL availability on ALL busybox distros. Things like awk and lua are not in all distros, but sh is (and even bash is not always there). I did this to show that anything is possible and you do not need to be limited by your tools if you master them.
So this will work on a bricked kindle as long as you have ssh from main or diags (on the k4 they have different busybox versions with different built-in commands).
Now that I have shown that you can do anything you want with /bin/sh (but with a speed penalty), I plan to add a few finishing touches (touchscreen button support and onscreen keyboards for k4 and touch), then move to the other extreme of C with optimized assembler code for the inner loops (graphics blitting and custom decompression).
But when I have time. I have many things demanding my time in big ways right now...
Anyway, even with the worst of tools, you can do useful and interesting things, if you set your mind to it. Computers are so fast compared to what I grew up with, that even crude and slow tools such as /bin/sh are MUCH faster than hand-crafted assembler language was back in the day. The limiting factor on graphics is that eips does full screen updates (which are just as slow called from C with ioctl() as they are here). The way to speed up graphics is to do partial screen updates. I am not sure how to do that with eips (if even possible).