diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-12-24 06:02:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-12-24 06:02:11 +0000 |
commit | b90502828cd2178efa049a96f7bbbd9ae6355130 (patch) | |
tree | 14bd4dbe18d14426d154d656e77426c0ac9c0feb /include | |
parent | 5089534be00aaaf16c2ffcf2a7ed8d742d583e5a (diff) | |
download | busybox-w32-b90502828cd2178efa049a96f7bbbd9ae6355130.tar.gz busybox-w32-b90502828cd2178efa049a96f7bbbd9ae6355130.tar.bz2 busybox-w32-b90502828cd2178efa049a96f7bbbd9ae6355130.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 1119a9ea6..e348516ea 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -553,6 +553,9 @@ | |||
553 | #ifdef CONFIG_SYNC | 553 | #ifdef CONFIG_SYNC |
554 | APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 554 | APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
555 | #endif | 555 | #endif |
556 | #ifdef CONFIG_SYSCTL | ||
557 | APPLET(sysctl, sysctl_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
558 | #endif | ||
556 | #ifdef CONFIG_SYSLOGD | 559 | #ifdef CONFIG_SYSLOGD |
557 | APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 560 | APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
558 | #endif | 561 | #endif |
diff --git a/include/usage.h b/include/usage.h index bd78a5381..c8716d24d 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2266,6 +2266,27 @@ | |||
2266 | #define USAGE_IPC_LOG(a) | 2266 | #define USAGE_IPC_LOG(a) |
2267 | #endif | 2267 | #endif |
2268 | 2268 | ||
2269 | #ifdef CONFIG_SYSCTL | ||
2270 | #define sysctl_trivial_usage \ | ||
2271 | "[OPTIONS]... [VALUE]...\n" | ||
2272 | #define sysctl_full_usage | ||
2273 | "sysctl - configure kernel parameters at runtime\n\n" \ | ||
2274 | "Options:\n" \ | ||
2275 | "\t-n\tUse this option to disable printing of the key name when printing values.\n" \ | ||
2276 | "\t-e\tUse this option to ignore errors about unknown keys.\n" \ | ||
2277 | "\t-w\tUse this option when you want to change a sysctl setting.\n" \ | ||
2278 | "\t-p\tLoad in sysctl settings from the file specified or /etc/sysctl.conf if none given.\n" \ | ||
2279 | "\t-a\tDisplay all values currently available.\n" \ | ||
2280 | "\t-A\tDisplay all values currently available in table form." | ||
2281 | |||
2282 | #define sysctl_example_usage | ||
2283 | "sysctl [-n] [-e] variable ...\n" \ | ||
2284 | "sysctl [-n] [-e] -w variable=value ...\n" \ | ||
2285 | "sysctl [-n] [-e] -a\n" \ | ||
2286 | "sysctl [-n] [-e] -p <file>\t(default /etc/sysctl.conf)\n" \ | ||
2287 | "sysctl [-n] [-e] -A\n" | ||
2288 | #endif | ||
2289 | |||
2269 | #define syslogd_trivial_usage \ | 2290 | #define syslogd_trivial_usage \ |
2270 | "[OPTION]..." | 2291 | "[OPTION]..." |
2271 | #define syslogd_full_usage \ | 2292 | #define syslogd_full_usage \ |