diff --git a/trunk/scripts/htbt.sh b/trunk/scripts/htbt.sh index 8e057a75b..d54f91412 100755 --- a/trunk/scripts/htbt.sh +++ b/trunk/scripts/htbt.sh @@ -1,4 +1,5 @@ #/bin/bash +ip=`ifconfig 2>&1|grep "inet addr"|grep -v "127"|awk '{print $2}'|awk -F ':' '{print $2}'` for ((;;)); do echo "heatbeat at `date`" curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo ""