? procps/sysctl.c Index: include/applets.h =================================================================== RCS file: /var/cvs/busybox/include/applets.h,v retrieving revision 1.104 diff -u -b -B -w -p -r1.104 applets.h --- include/applets.h 29 Aug 2003 07:38:56 -0000 1.104 +++ include/applets.h 9 Sep 2003 19:44:02 -0000 @@ -544,6 +544,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: include/usage.h =================================================================== RCS file: /var/cvs/busybox/include/usage.h,v retrieving revision 1.166 diff -u -b -B -w -p -r1.166 usage.h --- include/usage.h 29 Aug 2003 14:18:26 -0000 1.166 +++ include/usage.h 9 Sep 2003 19:44:04 -0000 @@ -2213,6 +2213,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 \t(default /etc/sysctl.conf)\n" \ + "sysctl [-n] [-e] -A\n" +#endif + #define syslogd_trivial_usage \ "[OPTION]..." #define syslogd_full_usage \ Index: procps/Config.in =================================================================== RCS file: /var/cvs/busybox/procps/Config.in,v retrieving revision 1.6 diff -u -b -B -w -p -r1.6 Config.in --- procps/Config.in 22 Jul 2003 09:59:33 -0000 1.6 +++ procps/Config.in 9 Sep 2003 19:44:04 -0000 @@ -72,5 +72,11 @@ config CONFIG_UPTIME the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes. +config CONFIG_SYSCTL + bool "sysctl" + default n + help + sysctl - configure kernel parameters at runtime + endmenu Index: procps/Makefile.in =================================================================== RCS file: /var/cvs/busybox/procps/Makefile.in,v retrieving revision 1.4 diff -u -b -B -w -p -r1.4 Makefile.in --- procps/Makefile.in 14 Jul 2003 21:21:04 -0000 1.4 +++ procps/Makefile.in 9 Sep 2003 19:44:04 -0000 @@ -28,6 +28,7 @@ PROCPS-$(CONFIG_KILL) += kill.o PROCPS-$(CONFIG_PIDOF) += pidof.o PROCPS-$(CONFIG_PS) += ps.o PROCPS-$(CONFIG_RENICE) += renice.o +PROCPS-$(CONFIG_SYSCTL) += sysctl.o PROCPS-$(CONFIG_TOP) += top.o PROCPS-$(CONFIG_UPTIME) += uptime.o