aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-11 03:59:53 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-11 03:59:53 +0000
commitb662f0d58ba40cbbc1cca849fb6e8665688deb5e (patch)
tree9c39ef7e5ff639fac2b67a0b403385c345689c7d /include
parent348e84c202c4946d3694f130a6f81f61eb1d4b9e (diff)
downloadbusybox-b662f0d58ba40cbbc1cca849fb6e8665688deb5e.tar.gz
import ether-wake applet by haveaniceday Bug 252
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h13
2 files changed, 15 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h
index 3f411c269..bc5b36ae3 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 316772ea2..c68ae2e0d 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 \