-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnetwake.1.in
59 lines (58 loc) · 1.21 KB
/
netwake.1.in
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.Dd January 11, 2021
.Dt NETWAKE 1
.Os
.Sh NAME
.Nm netwake
.Nd simple Wake-on-LAN utility
.Sh SYNOPSIS
.Nm
.Op Fl V
.Ar mac-address Ns | Ns
.Ar name ...
.Sh DESCRIPTION
Turns on computers remotely by sending them Wake-on-LAN packets.
The computers must be on the same network
and have WOL enabled in their firmware.
.Pp
Multiple targets can be passed.
If an error occurs, a message is printed
and execution continues with the next target.
.Pp
With
.Fl V ,
.Nm
prints its version number and exits.
.Pp
To wake a computer by name instead of its MAC address,
create a file at any of these locations:
.Pp
.Bl -inset -offset Ds -compact
.It Pa $WOLTAB
.It Pa ~/.config/woltab Pq Pa $XDG_HOME_CONFIG/woltab
.It Pa ~/.woltab
.It Pa /etc/woltab
.El
.Pp
Add mac-address/name pairs, one per line,
separated by whitespace.
See
.Sx EXAMPLES .
.Sh EXIT STATUS
Exits with the number of failures
.Pq so 0 if no error occurs .
.Sh EXAMPLES
Wake a computer by its MAC address:
.Bd -literal -offset indent
$ netwake 12:34:56:78:9a:bc
.Ed
.Pp
Multiple, by name:
.Bd -literal -offset indent
$ cat ~/.woltab
12:34:56:78:9a:bc sijmens-pc
34:56:78:9a:bc:de sijmens-rpi
$ netwake sijmens-pc sijmens-pi
.Ed
.Sh AUTHORS
.An Sijmen J. Mulder
.Aq Mt [email protected]