Refactor ping to work with dagger

Turns out that this doesn't work with ISC dhcpd, only the embedded server in my home router (probably udhcpd from busybox).