From 0a6b0bfa7a821b594d237611e3f1effb1b3692fc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 21 Feb 2006 04:26:52 +0000 Subject: add setarch/linux32/linux64 applet --- include/applets.h | 7 +++++++ include/usage.h | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 6eb5cfd..e952ac4 100644 --- a/include/applets.h +++ b/include/applets.h @@ -378,6 +378,10 @@ #ifdef CONFIG_FEATURE_INITRD APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER) #endif +#ifdef CONFIG_SETARCH + APPLET_NOUSAGE("linux32", setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER) + APPLET_NOUSAGE("linux64", setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_LN APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif @@ -586,6 +590,9 @@ #ifdef CONFIG_SEQ APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_SETARCH + APPLET(setarch, setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_SETCONSOLE APPLET(setconsole, setconsole_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 22beead..63cd79f 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1626,6 +1626,13 @@ "\t\treached.\n" \ "\t-h, -?\tDisplay this help message\n" +#define setarch_trivial_usage \ + " [args ...]" +#define setarch_full_usage \ + "Personality may be:\n" \ + "\tlinux32\tSet 32bit uname emulation\n" \ + "\tlinux64\tSet 64bit uname emulation" + #define ln_trivial_usage \ "[OPTION] TARGET... LINK_NAME|DIRECTORY" #define ln_full_usage \ -- cgit v1.1