toolboxとbusybox

組み込みLinux系はコマンド類の保存に困るので、busyboxと言うコマンドを一個だけいれてる。呼び出し方によって、あらゆるコマンドになりすますことが出来るので便利。Androidにはtoolboxと言う同じようなコマンドが入っているが、微妙に独自拡張が有るので入れ替えには注意。

toolboxで提供しているコマンド群は以下の通り

$ find ./system/ -lname toolbox
./system/bin/iftop
./system/bin/sync
./system/bin/start
./system/bin/uptime
./system/bin/ionice
./system/bin/log
./system/bin/chmod
./system/bin/ls
./system/bin/chown
./system/bin/setprop
./system/bin/umount
./system/bin/ln
./system/bin/df
./system/bin/newfs_msdos
./system/bin/vmstat
./system/bin/sleep
./system/bin/smd
./system/bin/route
./system/bin/stop
./system/bin/touch
./system/bin/mv
./system/bin/rm
./system/bin/netstat
./system/bin/cmp
./system/bin/getevent
./system/bin/insmod
./system/bin/top
./system/bin/mount
./system/bin/dd
./system/bin/nandread
./system/bin/sendevent
./system/bin/kill
./system/bin/hd
./system/bin/date
./system/bin/schedtop
./system/bin/printenv
./system/bin/cat
./system/bin/wipe
./system/bin/lsof
./system/bin/renice
./system/bin/ifconfig
./system/bin/watchprops
./system/bin/getprop
./system/bin/lsmod
./system/bin/rmdir
./system/bin/id
./system/bin/mkdir
./system/bin/ps
./system/bin/notify
./system/bin/rmmod
./system/bin/setconsole
./system/bin/ioctl
./system/bin/dmesg
$ find ./system/ -lname toolbox | wc
53????? 53????? 1012

と言うことで、計53個のコマンドになりすましています。busyboxでは対応していないコマンドも有るので、単純な入れ替えは無理そうですね…。

 

コメント