jc00ke/hatty

A little helper to wake up a computer using a magic packet

★ 2Forks 0RustGitHub ↗Compare

README

Hatty

A little wake-on-lan utility.

Usage

> hatty  --mac 18-C0-4D-42-2D-EA
sent
> echo $?
0

> hatty --mac 18-C0-4D-42-2D-EA --to 192.168.0.101
sent
> echo $?
0

> hatty --mac 18-C0-4D-42-2D-XX
error
> echo $?
1

Debugging

> sudo netcat -ul 9
> cargo run -- --mac 18-C0-4D-42-2D-EA --to 127.0.0.1

Then you should see something from netcat.

The Name

wake-on-lan -> wol -> wooly -> wooly bully -> HATTY TOLD MATTY

Sam the Sham and the Pharaohs

Compiling for the Raspberry Pi

> sudo apt install gcc-arm-linux-gnueabihf
> rustup target add armv7-unknown-linux-gnueabihf
> cargo build --release --target armv7-unknown-linux-gnueabihf
> stat target/armv7-unknown-linux-gnueabihf/release/hatty

Resources & Inspiration

Thanks to Jacob Rothstein for coaching me through this!

Contributors

jc00ke

Issues