[BusyBox-cvs] busybox/include applets.h, 1.109, 1.110 usage.h, 1.181, 1.182

Erik Andersen andersen at busybox.net
Wed Dec 24 06:02:13 UTC 2003


Update of /var/cvs/busybox/include
In directory nail:/tmp/cvs-serv11562/include

Modified Files:
	applets.h usage.h 
Log Message:
Patch from Ned Ludd, solar at gentoo dot org:

I had previously provided you with a patch to help complete busybox's
props suite, but have heard no word back. Sense then I've made use of as
many of busybox's native API settings as I could find and would really
love for you to include support for this. If there is something more I
need to do to get this supported added in please let me know.



Index: applets.h
===================================================================
RCS file: /var/cvs/busybox/include/applets.h,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- applets.h	20 Dec 2003 07:30:34 -0000	1.109
+++ applets.h	24 Dec 2003 06:02:10 -0000	1.110
@@ -553,6 +553,9 @@
 #ifdef CONFIG_SYNC
 	APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER)
 #endif
+#ifdef CONFIG_SYSCTL
+	APPLET(sysctl, sysctl_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
+#endif
 #ifdef CONFIG_SYSLOGD
 	APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
 #endif

Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -d -r1.181 -r1.182
--- usage.h	20 Dec 2003 07:30:34 -0000	1.181
+++ usage.h	24 Dec 2003 06:02:10 -0000	1.182
@@ -2266,6 +2266,27 @@
   #define USAGE_IPC_LOG(a)
 #endif
 
+#ifdef CONFIG_SYSCTL
+#define sysctl_trivial_usage \
+	"[OPTIONS]... [VALUE]...\n"
+#define sysctl_full_usage
+	"sysctl - configure kernel parameters at runtime\n\n" \
+	"Options:\n" \
+	"\t-n\tUse this option to disable printing of the key name when printing values.\n" \
+	"\t-e\tUse this option to ignore errors about unknown keys.\n" \
+	"\t-w\tUse this option when you want to change a sysctl setting.\n" \
+	"\t-p\tLoad in sysctl settings from the file specified or /etc/sysctl.conf if none given.\n" \
+	"\t-a\tDisplay all values currently available.\n" \
+	"\t-A\tDisplay all values currently available in table form."
+
+#define sysctl_example_usage
+	"sysctl [-n] [-e] variable ...\n" \
+	"sysctl [-n] [-e] -w variable=value ...\n" \
+	"sysctl [-n] [-e] -a\n" \
+	"sysctl [-n] [-e] -p <file>\t(default /etc/sysctl.conf)\n" \
+	"sysctl [-n] [-e] -A\n"
+#endif
+
 #define syslogd_trivial_usage \
 	"[OPTION]..."
 #define syslogd_full_usage \




More information about the busybox-cvs mailing list