Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (21 sloc) 0.615 kb
#!/bin/bash
. /etc/webc/functions.sh
. /etc/webc/webc.conf
server="http://ping.webconverger.org/"
sleeping=5
# $device at this point does not tell us if we are running the "install version", since the rw remount happens later
webcping () {
logger "Pinging $server"
wget -qO- --timeout=5 --post-data="M=$(
mac_address | md5sum | awk '{print $1}'
)&V=${webc_version}&D=${device}&K=${kernel}" "$server"
}
lockdir=/var/run/webcping
test -f "$lockdir" && exit 0
touch "$lockdir"
cmdline_has noping ||
while ! webcping
do
logger "Failed to ping $server, sleeping $sleeping seconds"
sleep "$sleeping"
done &
Jump to Line
Something went wrong with that request. Please try again.