Add in the "reset" command.

-Erik
This commit is contained in:
Eric Andersen 2000-08-21 21:18:52 +00:00
parent 202995c612
commit fa405d0cb2
8 changed files with 52 additions and 3 deletions

View File

@ -229,6 +229,9 @@ const struct BB_applet applets[] = {
#ifdef BB_RENICE
{"renice", renice_main, _BB_DIR_USR_BIN},
#endif
#ifdef BB_RESET
{"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
#endif
#ifdef BB_RM
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
#endif

View File

@ -876,6 +876,16 @@ const char renice_usage[] =
;
#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
const char rm_usage[] =
"rm [OPTION]... FILE...\n"

View File

@ -229,6 +229,9 @@ const struct BB_applet applets[] = {
#ifdef BB_RENICE
{"renice", renice_main, _BB_DIR_USR_BIN},
#endif
#ifdef BB_RESET
{"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
#endif
#ifdef BB_RM
{"rm", rm_main, _BB_DIR_BIN, rm_usage},
#endif

View File

@ -74,6 +74,7 @@
#define BB_PWD
#define BB_REBOOT
#define BB_RENICE
#define BB_RESET
#define BB_RM
#define BB_RMDIR
#define BB_RMMOD

View File

@ -61,7 +61,7 @@ fdflush, find, free, freeramdisk, fsck.minix, grep, gunzip, gzip, halt,
head, hostid, hostname, id, init, insmod, kill, killall, length, ln,
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, makedevs, mkdir,
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,
tar, tee, telnet, test, touch, tr, true, tty, umount, uname, uniq, update,
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
Usage: rm [OPTION]... FILE...
@ -2044,4 +2052,4 @@ Enrique Zanardi <ezanardi@ull.es>
=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 $

View File

@ -140,7 +140,7 @@
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
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,
test, touch, tr, true, tty, umount, uname, uniq, update,
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
@ -2459,6 +2459,18 @@
</para>
</sect1>
<sect1 id="reset">
<title>reset</title>
<para>
Usage: reset
</para>
<para>
Resets the screen.
</para>
</sect1>
<sect1 id="rm">
<title>rm</title>

View File

@ -178,6 +178,7 @@ extern int ps_main(int argc, char** argv);
extern int pwd_main(int argc, char** argv);
extern int reboot_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 rmdir_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 reboot_usage[];
extern const char renice_usage[];
extern const char reset_usage[];
extern const char rm_usage[];
extern const char rmdir_usage[];
extern const char rmmod_usage[];

10
usage.c
View File

@ -876,6 +876,16 @@ const char renice_usage[] =
;
#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
const char rm_usage[] =
"rm [OPTION]... FILE...\n"