Stopping the Ping Command on a Console
Problem: When attached to the serial console of a target, entering Ctrl-C does not stop the ping command.
Cause: If you run the console on /dev/console, BusyBox disables job control, which includes commands such as Ctrl-C and Ctrl-Z.
Solution:
Edit the file /etc/inittab to use the /dev/ttyS0 device, or whichever device is appropriate, instead of using /dev/console.
For example:
# edit inittab to start of ttyS0 instead of # console, and remove vc entries sed -i 's/console/ttyS0/' ./etc/inittab sed -i 's/^.*vc.*$/#\0/' ./etc/inittab