A little wake-on-lan utility.
> 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
> 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.
wake-on-lan -> wol -> wooly -> wooly bully -> HATTY TOLD MATTY
> 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
Thanks to Jacob Rothstein for coaching me through this!