Save the file as ping_opkg, and make it executable with:
chmod 777 ping_opkg

run like this:
./ping_opkg

It will either do the update or say, "Noooo!" if it can't and doesn't gang the system :-)

]]>http://community.onion.io/post/4177http://community.onion.io/post/4177Mon, 22 Feb 2016 21:27:09 GMT@TheLion How would you have it test via time limit? Thanks for the code.
]]>http://community.onion.io/post/5071http://community.onion.io/post/5071Wed, 20 Apr 2016 10:36:19 GMT@Guest In the ping command, "ping -c 1 -W 1 downloads.openwrt.org" there are the two parameters - c1 and W1. The number after the "c" is the amount of pings sent and the number after the "W" is the timeout in seconds.

In this case, I have asked for one ping and to wait 1 second for the reply.