server-scripts/wakeup-nas.rb
2018-09-13 07:43:21 +00:00

6 lines
143 B
Ruby

require 'socket'
TCPSocket.open('home.devkid.net', 22198) do |socket|
socket.write(File.read("/etc/nixos/secrets/nas-wakeup-password"))
end