summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorMark Whitley2000-10-09 18:56:47 +0000
committerMark Whitley2000-10-09 18:56:47 +0000
commit872138de50b1c5bbf105b0243f5778fcb02b310b (patch)
treebae88fc4587a4d0aa9ec228c1006f4b364d0633e /applets
parent7a86e61a54f75c6c457be177fb20f6dde27c06d3 (diff)
downloadbusybox-872138de50b1c5bbf105b0243f5778fcb02b310b.zip
busybox-872138de50b1c5bbf105b0243f5778fcb02b310b.tar.gz
Added cmp and readlink applets from Matt Kraai.
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c6
-rw-r--r--applets/usage.c19
2 files changed, 24 insertions, 1 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 825f40e..d25ddc1 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -40,6 +40,9 @@ const struct BB_applet applets[] = {
#ifdef BB_CHVT
{"chvt", chvt_main, _BB_DIR_USR_BIN, chvt_usage},
#endif
+#ifdef BB_CMP
+ {"cmp", cmp_main, _BB_DIR_USR_BIN, cmp_usage},
+#endif
#ifdef BB_CP_MV
{"cp", cp_mv_main, _BB_DIR_BIN, cp_usage},
#endif
@@ -235,6 +238,9 @@ const struct BB_applet applets[] = {
#ifdef BB_RDATE
{"rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage},
#endif
+#ifdef BB_READLINK
+ {"readlink", readlink_main, _BB_DIR_USR_BIN, readlink_usage},
+#endif
#ifdef BB_REBOOT
{"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage},
#endif
diff --git a/applets/usage.c b/applets/usage.c
index ae6cbaa..81f4cfc 100644
--- a/applets/usage.c
+++ b/applets/usage.c
@@ -93,6 +93,15 @@ const char clear_usage[] =
;
#endif
+#if defined BB_CMP
+const char cmp_usage[] =
+ "cmp FILE1 [FILE2]\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nCompare files.\n"
+#endif
+ ;
+#endif
+
#if defined BB_CP_MV
const char cp_usage[] =
"cp [OPTION]... SOURCE DEST\n"
@@ -959,6 +968,15 @@ const char rdate_usage[] =
;
#endif
+#if defined BB_READLINK
+const char readlink_usage[] =
+ "readlink\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nRead a symbolic link.\n"
+#endif
+ ;
+#endif
+
#if defined BB_REBOOT
const char reboot_usage[] =
"reboot\n"
@@ -967,7 +985,6 @@ const char reboot_usage[] =
#endif
;
#endif
-
#if defined BB_RENICE
const char renice_usage[] =