diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index 3f411c2..bc5b36a 100644 --- a/include/applets.h +++ b/include/applets.h @@ -188,6 +188,9 @@ #ifdef CONFIG_ENV APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_ETHER_WAKE + APPLET_ODDNAME("ether-wake", etherwake_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, ether_wake) +#endif #ifdef CONFIG_EXPR APPLET(expr, expr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 316772e..c68ae2e 100644 --- a/include/usage.h +++ b/include/usage.h @@ -567,7 +567,7 @@ #define eject_full_usage \ "Eject specified DEVICE (or default /dev/cdrom).\n\n" \ "Options:\n" \ - "\tt" USAGE_EJECT_TRAYCLOSE "\tclose tray" + "\t-t" USAGE_EJECT_TRAYCLOSE "\tclose tray" #define env_trivial_usage \ "[-iu] [-] [name=value]... [command]" @@ -578,6 +578,17 @@ "\t-, -i\tstart with an empty environment\n" \ "\t-u\tremove variable from the environment" +#define ether_wake_trivial_usage \ + "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC" +#define ether_wake_full_usage \ + "Send a magic packet to wake up sleeping machines.\n" \ + "MAC must be a station address (00:11:22:33:44:55) or\n" \ + " a hostname with a known 'ethers' entry.\n\n" \ + "Options:\n" \ + "\t-b\t\tSend wake-up packet to the broadcast address\n" \ + "\t-i iface\tUse interface ifname instead of the default \"eth0\"\n" \ + "\t-p pass\tAppend the four or six byte password PW to the packet\n" + #define expr_trivial_usage \ "EXPRESSION" #define expr_full_usage \ |