aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-08-21 21:18:52 +0000
committerEric Andersen <andersen@codepoet.org>2000-08-21 21:18:52 +0000
commitfa405d0cb284011a4f0e47937a0aa34e6ccfff0d (patch)
tree31a61d59056c80e61b153a69799aa5d007195af4
parent202995c61226d4ac4d67956007dd5b4ea3cebe23 (diff)
downloadbusybox-fa405d0cb284011a4f0e47937a0aa34e6ccfff0d.tar.gz
Add in the "reset" command.
-Erik
-rw-r--r--applets/busybox.c3
-rw-r--r--applets/usage.c10
-rw-r--r--busybox.c3
-rw-r--r--busybox.def.h1
-rw-r--r--docs/busybox.pod12
-rw-r--r--docs/busybox.sgml14
-rw-r--r--internal.h2
-rw-r--r--usage.c10
8 files changed, 52 insertions, 3 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 25bfe438d..5d13a7b98 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -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
diff --git a/applets/usage.c b/applets/usage.c
index 5037c94d8..eaa77cc84 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -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"
diff --git a/busybox.c b/busybox.c
index 25bfe438d..5d13a7b98 100644
--- a/busybox.c
+++ b/busybox.c
@@ -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
diff --git a/busybox.def.h b/busybox.def.h
index 78e826d9b..91ab0b3c9 100644
--- a/busybox.def.h
+++ b/busybox.def.h
@@ -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
diff --git a/docs/busybox.pod b/docs/busybox.pod
index cdbe3e0f0..916ccb6f0 100644
--- a/docs/busybox.pod
+++ b/docs/busybox.pod
@@ -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 $
diff --git a/docs/busybox.sgml b/docs/busybox.sgml
index 560bd61f6..864dbe0ac 100644
--- a/docs/busybox.sgml
+++ b/docs/busybox.sgml
@@ -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>
diff --git a/internal.h b/internal.h
index 9de1c9372..a47274342 100644
--- a/internal.h
+++ b/internal.h
@@ -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[];
diff --git a/usage.c b/usage.c
index 5037c94d8..eaa77cc84 100644
--- a/usage.c
+++ b/usage.c
@@ -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"