Making life easier with busy box.

Discussion in 'Huawei Ideos S7 Technical' started by ivyvisors, Jan 15, 2011.

  1. ivyvisors

    ivyvisors Senior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    Hi everyone,

    Here's some tips of what you can do to make your life easier with busybox. As the wikipedia page says:

    There is a good version of busybox that can be downloaded using Titanium Backup. Or from their site you can download it from their site here.

    More information on how to install it can be found at the titanium back up troubleshooting faq.

    Anyway, lets say we've got busybox installed. Now to get a list of all of the commands just type busybox and press enter (this is via adb shell) and you'll be presented with all of the commands built into busybox.

    To run one of these commands, we'd normally type:

    busybox <command>

    where command is the command you wish to run. Now it gets tedious having to type busybox before every command. But there is a solution!

    First we need to mount system read write with the following command:

    mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system

    now we need to change to the system/bin directory (bin is where all our command line applications and commands live.)

    Using the command ln (link) we can create softlinks to the busybox binary with the name of the command we wish to run. Busybox recognises this and will run the correct command.

    So for example tar. We'd need to run the following command:

    ln -s busybox tar

    now we can just type tar instead of having to type busybox tar.

    Now we can repeat this for any of the other missing commands, and once you're done remember to mount system back to read only with:

    mount -o ro,remount -t yaffs2 /dev/block/mtdblock1 /system

    Hope this helps some people out.

    Remember to have fun.

    ~Ivy
     
    • Like Like x 4
  2. vferrari

    vferrari Senior Member

    Joined:
    Dec 4, 2010
    Messages:
    359
    Likes Received:
    25
    Trophy Points:
    102
    Location:
    NULL
    Ivy -

    Thanks for this post. So easy a caveman could do it.
     
  3. pvella

    pvella Senior Member

    Joined:
    Dec 20, 2010
    Messages:
    392
    Likes Received:
    38
    Trophy Points:
    102
    Location:
    Melbourne
    Tablet / Device:
    Huawei S7
    Thanks for this post

    Sent from my Ideos S7
     
  4. ivyvisors

    ivyvisors Senior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    Ta,

    It's just something I'm used to doing, and thought hey it needed a little writeup =)

    ~Ivy
     

Share This Page

Search tags for this page
android busybox commands
,
android busybox tricks
,
best tricks from busy box in android
,
busybox tips
,
busybox tips and tricks
,
busybox tips andvtricks
,
busybox tips tricks
,
busybox trick
,

busybox tricks

,
busybox trics
,
how to use busybox
,
how to use busybox android
,
linux busybox trick
,
tips and tricks for busybox
,
tricks using busybox android
,
tricks with busy box
,
tricks with busybox
,
what can be done with busybox
,
what to do with busybox
,
what we can do with busybox