From d7cc2e601d9d909ca9de168da746dede7487e860 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 17 Aug 2008 14:17:48 +0000 Subject: showkey: new applet by Vladimir --- include/applets.h | 3 ++- include/usage.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index ee9635719..27c118e68 100644 --- a/include/applets.h +++ b/include/applets.h @@ -329,6 +329,7 @@ USE_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, _BB_DIR_BIN, _BB_SUID_NEVER, sh)) USE_FEATURE_SH_IS_HUSH(APPLET_ODDNAME(sh, hush, _BB_DIR_BIN, _BB_SUID_NEVER, sh)) USE_FEATURE_SH_IS_MSH(APPLET_ODDNAME(sh, msh, _BB_DIR_BIN, _BB_SUID_NEVER, sh)) USE_SHA1SUM(APPLET_ODDNAME(sha1sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, sha1sum)) +USE_SHOWKEY(APPLET(showkey, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_SLATTACH(APPLET(slattach, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_SLEEP(APPLET_NOFORK(sleep, sleep, _BB_DIR_BIN, _BB_SUID_NEVER, sleep)) USE_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER, softlimit)) @@ -342,7 +343,7 @@ USE_SU(APPLET(su, _BB_DIR_BIN, _BB_SUID_ALWAYS)) USE_SULOGIN(APPLET(sulogin, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_SUM(APPLET(sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_SV(APPLET(sv, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) -USE_SVLOGD(APPLET(svlogd, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) +USE_SVLOGD(APPLET(svlogd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) USE_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, _BB_DIR_SBIN, _BB_SUID_NEVER,swapoff)) USE_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, _BB_DIR_SBIN, _BB_SUID_NEVER, swapon)) USE_SWITCH_ROOT(APPLET(switch_root, _BB_DIR_SBIN, _BB_SUID_NEVER)) diff --git a/include/usage.h b/include/usage.h index feeaadd52..1e05eabc6 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3568,6 +3568,15 @@ "\n -w Warn about improperly formatted SHA1 checksum lines" \ ) +#define showkey_trivial_usage \ + "[-a | -k | -s]" +#define showkey_full_usage "\n\n" \ + "Show keys pressed\n" \ + "\nOptions:" \ + "\n -a Display decimal/octal/hex values of the keys" \ + "\n -k Display interpreted keycodes (default)" \ + "\n -s Display raw scan-codes" \ + #define slattach_trivial_usage \ "[-cehmLF] [-s speed] [-p protocol] DEVICEs" #define slattach_full_usage "\n\n" \ -- cgit v1.2.3