Debian Codegraph @

debian/patches/rename-binary.patch

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