HiWiFi busybox

来自IPTV爱好者
跳转至: 导航搜索

busybox

busybox是OpenWrt Linux中一个关键的程序,实现了常用的Linux Shell命令,被称为“瑞士军刀”。

root@Hiwifi:~# busybox
BusyBox v1.19.4 (2013-08-30 19:41:00 CST) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, arping, ash, awk, base64, basename, brctl, bunzip2, bzcat, cat,
        chgrp, chmod, chown, chroot, clear, cmp, cp, crond, cut, date, dd, df,
        dirname, dmesg, du, echo, egrep, env, expr, false, fdisk, fgrep, find,
        free, fsync, grep, gunzip, gzip, halt, head, hexdump, hostid, hwclock,
        id, ifconfig, init, insmod, kill, killall, klogd, less, ln, lock,
        logger, logread, ls, lsmod, md5sum, mkdir, mkfifo, mknod, mktemp,
        mount, mv, nc, netmsg, netstat, nice, nslookup, passwd, pgrep, pidof,
        ping, ping6, pivot_root, pkill, poweroff, printf, ps, pwd, reboot,
        reset, rm, rmdir, rmmod, route, sed, seq, sh, sleep, sort,
        start-stop-daemon, strings, switch_root, sync, sysctl, syslogd, tail,
        tar, tee, telnet, test, tftp, time, top, touch, tr, traceroute, true,
        udhcpc, umount, uname, uniq, uptime, vconfig, vi, wc, wdisk, wget,
        which, xargs, yes, zcat

其中的wdisk为HiWiFi新增的applet

BusyBox v1.19.4 (2013-08-30 19:41:00 CST) multi-call binary.

Usage: wdisk create by wjy, hiahia

       e.g.
              wdisk /dev/sda
this command is to format disk '/dev/sda' into one primary partition with sysid = 83
!!! still use fdisk to change partition