Package: etherwake / 1.09-4

rename-binary.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Rename ether-wake to etherwake
--- a/ether-wake.c
+++ b/ether-wake.c
@@ -1,12 +1,12 @@
 /* ether-wake.c: Send a magic packet to wake up sleeping machines. */
 
 static char version_msg[] =
-"ether-wake.c: v1.09 11/12/2003 Donald Becker, http://www.scyld.com/";
+"etherwake.c: v1.09 11/12/2003 Donald Becker, http://www.scyld.com/";
 static char brief_usage_msg[] =
-"usage: ether-wake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
+"usage: etherwake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
 "   Use '-u' to see the complete set of options.\n";
 static char usage_msg[] =
-"usage: ether-wake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
+"usage: etherwake [-i <ifname>] [-p aa:bb:cc:dd[:ee:ff]] 00:11:22:33:44:55\n"
 "\n"
 "	This program generates and transmits a Wake-On-LAN (WOL)\n"
 "	\"Magic Packet\", used for restarting machines that have been\n"
@@ -159,9 +159,9 @@
 #endif
 	if (s < 0) {
 		if (errno == EPERM)
-			fprintf(stderr, "ether-wake: This program must be run as root.\n");
+			fprintf(stderr, "etherwake: This program must be run as root.\n");
 		else
-			perror("ether-wake: socket");
+			perror("etherwake: socket");
 		perm_failure++;
 	}
 	/* Don't revert if debugging allows a normal user to get the raw socket. */
@@ -295,7 +295,7 @@
 					hostid, ether_ntoa(eaddr));
 	} else {
 		(void)fprintf(stderr,
-					  "ether-wake: The Magic Packet host address must be "
+					  "etherwake: The Magic Packet host address must be "
 					  "specified as\n"
 					  "  - a station address, 00:11:22:33:44:55, or\n"
 					  "  - a hostname with a known 'ethers' entry.\n");