The device does not use reboot forcing because it waits while the scripts handle they're actions and shut off properly. So, the device interprets this script as an important task and waits for it to end. The solution would be to add -W [n] (where n is the amount of time to wait for a response. For example: ping 10.241.199.144 -c 3 -W 1 -q >/dev/null
Please test the following example using your corresponding IP number:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
while [ 1 ]; do
ping 10.241.199.144 -c 3 -W 1 -q >/dev/null
if [ $ret -ne 0 ]; then