Add in the "reset" command.
-Erik
This commit is contained in:
parent
202995c612
commit
fa405d0cb2
@ -229,6 +229,9 @@ const struct BB_applet applets[] = {
|
|||||||
#ifdef BB_RENICE
|
#ifdef BB_RENICE
|
||||||
{"renice", renice_main, _BB_DIR_USR_BIN},
|
{"renice", renice_main, _BB_DIR_USR_BIN},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BB_RESET
|
||||||
|
{"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
|
||||||
|
#endif
|
||||||
#ifdef BB_RM
|
#ifdef BB_RM
|
||||||
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
|
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
|
||||||
#endif
|
#endif
|
||||||
|
@ -876,6 +876,16 @@ const char renice_usage[] =
|
|||||||
;
|
;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined BB_RESET
|
||||||
|
const char reset_usage[] =
|
||||||
|
"reset\n"
|
||||||
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
|
"\nResets the screen.\n"
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined BB_RM
|
#if defined BB_RM
|
||||||
const char rm_usage[] =
|
const char rm_usage[] =
|
||||||
"rm [OPTION]... FILE...\n"
|
"rm [OPTION]... FILE...\n"
|
||||||
|
@ -229,6 +229,9 @@ const struct BB_applet applets[] = {
|
|||||||
#ifdef BB_RENICE
|
#ifdef BB_RENICE
|
||||||
{"renice", renice_main, _BB_DIR_USR_BIN},
|
{"renice", renice_main, _BB_DIR_USR_BIN},
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BB_RESET
|
||||||
|
{"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
|
||||||
|
#endif
|
||||||
#ifdef BB_RM
|
#ifdef BB_RM
|
||||||
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
|
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
#define BB_PWD
|
#define BB_PWD
|
||||||
#define BB_REBOOT
|
#define BB_REBOOT
|
||||||
#define BB_RENICE
|
#define BB_RENICE
|
||||||
|
#define BB_RESET
|
||||||
#define BB_RM
|
#define BB_RM
|
||||||
#define BB_RMDIR
|
#define BB_RMDIR
|
||||||
#define BB_RMMOD
|
#define BB_RMMOD
|
||||||
|
@ -61,7 +61,7 @@ fdflush, find, free, freeramdisk, fsck.minix, grep, gunzip, gzip, halt,
|
|||||||
head, hostid, hostname, id, init, insmod, kill, killall, length, ln,
|
head, hostid, hostname, id, init, insmod, kill, killall, length, ln,
|
||||||
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, makedevs, mkdir,
|
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, makedevs, mkdir,
|
||||||
mkfifo, mkfs.minix, mknod, mkswap, mktemp, more, mount, mt, mv, nc,
|
mkfifo, mkfs.minix, mknod, mkswap, mktemp, more, mount, mt, mv, nc,
|
||||||
nslookup, ping, poweroff, printf, ps, pwd, reboot, renice, rm, rmdir, rmmod, sed,
|
nslookup, ping, poweroff, printf, ps, pwd, reboot, renice, reset, rm, rmdir, rmmod, sed,
|
||||||
setkeycodes, sh, sleep, sort, swapoff, swapon, sync, syslogd, tail,
|
setkeycodes, sh, sleep, sort, swapoff, swapon, sync, syslogd, tail,
|
||||||
tar, tee, telnet, test, touch, tr, true, tty, umount, uname, uniq, update,
|
tar, tee, telnet, test, touch, tr, true, tty, umount, uname, uniq, update,
|
||||||
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes, zcat, [
|
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes, zcat, [
|
||||||
@ -1396,6 +1396,14 @@ from 20 (the process runs only when nothing else is running) to 0
|
|||||||
|
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
|
=item reset
|
||||||
|
|
||||||
|
Usage: reset
|
||||||
|
|
||||||
|
Resets the screen.
|
||||||
|
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
=item rm
|
=item rm
|
||||||
|
|
||||||
Usage: rm [OPTION]... FILE...
|
Usage: rm [OPTION]... FILE...
|
||||||
@ -2044,4 +2052,4 @@ Enrique Zanardi <ezanardi@ull.es>
|
|||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
# $Id: busybox.pod,v 1.60 2000/08/02 18:48:25 andersen Exp $
|
# $Id: busybox.pod,v 1.61 2000/08/21 21:18:52 andersen Exp $
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
|
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
|
||||||
makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
|
makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
|
||||||
more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps,
|
more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps,
|
||||||
pwd, reboot, renice, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep,
|
pwd, reboot, renice, reset, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep,
|
||||||
sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet,
|
sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet,
|
||||||
test, touch, tr, true, tty, umount, uname, uniq, update,
|
test, touch, tr, true, tty, umount, uname, uniq, update,
|
||||||
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
|
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
|
||||||
@ -2459,6 +2459,18 @@
|
|||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="reset">
|
||||||
|
<title>reset</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Usage: reset
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Resets the screen.
|
||||||
|
</para>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
<sect1 id="rm">
|
<sect1 id="rm">
|
||||||
<title>rm</title>
|
<title>rm</title>
|
||||||
|
|
||||||
|
@ -178,6 +178,7 @@ extern int ps_main(int argc, char** argv);
|
|||||||
extern int pwd_main(int argc, char** argv);
|
extern int pwd_main(int argc, char** argv);
|
||||||
extern int reboot_main(int argc, char** argv);
|
extern int reboot_main(int argc, char** argv);
|
||||||
extern int renice_main(int argc, char** argv);
|
extern int renice_main(int argc, char** argv);
|
||||||
|
extern int reset_main(int argc, char** argv);
|
||||||
extern int rm_main(int argc, char** argv);
|
extern int rm_main(int argc, char** argv);
|
||||||
extern int rmdir_main(int argc, char **argv);
|
extern int rmdir_main(int argc, char **argv);
|
||||||
extern int rmmod_main(int argc, char** argv);
|
extern int rmmod_main(int argc, char** argv);
|
||||||
@ -283,6 +284,7 @@ extern const char ps_usage[];
|
|||||||
extern const char pwd_usage[];
|
extern const char pwd_usage[];
|
||||||
extern const char reboot_usage[];
|
extern const char reboot_usage[];
|
||||||
extern const char renice_usage[];
|
extern const char renice_usage[];
|
||||||
|
extern const char reset_usage[];
|
||||||
extern const char rm_usage[];
|
extern const char rm_usage[];
|
||||||
extern const char rmdir_usage[];
|
extern const char rmdir_usage[];
|
||||||
extern const char rmmod_usage[];
|
extern const char rmmod_usage[];
|
||||||
|
10
usage.c
10
usage.c
@ -876,6 +876,16 @@ const char renice_usage[] =
|
|||||||
;
|
;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined BB_RESET
|
||||||
|
const char reset_usage[] =
|
||||||
|
"reset\n"
|
||||||
|
#ifndef BB_FEATURE_TRIVIAL_HELP
|
||||||
|
"\nResets the screen.\n"
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined BB_RM
|
#if defined BB_RM
|
||||||
const char rm_usage[] =
|
const char rm_usage[] =
|
||||||
"rm [OPTION]... FILE...\n"
|
"rm [OPTION]... FILE...\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user