moth/heartbeatd/run.heartbeat

10 lines
266 B
Bash
Executable File

#! /bin/sh
# Busybox netcat doesn't support UDP unless you compile in desktop mode.
# No problem, traceroute can send a UDP packet too.
while true; do
# Apparently traceroute adds 1 to the base port (-p)
traceroute -m 2 -q 1 -p 8 10.0.0.1
sleep 10
done