Remove WoL script since we can use a PyPI module instead
This commit is contained in:
parent
a30839eb21
commit
50542c2b53
14
wol
14
wol
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import socket
|
||||
import sys
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print "Usage: wol <ADR> <MAC> (example: 192.168.1.255 00:11:22:33:44:55)"
|
||||
sys.exit(1)
|
||||
|
||||
mac = sys.argv[2]
|
||||
data = ''.join(['FF' * 6, mac.replace(':', '') * 16])
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
||||
sock.sendto(data.decode("hex"), (sys.argv[1], 9))
|
Loading…
Reference in a new issue