Update hostsupdate.sh do get the actual bat hosts. Tim can you to the tmp and ln stuff?

This commit is contained in:
floh1111 2012-01-11 22:56:41 +00:00
parent bf6f0ed834
commit bc1594924c
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
wget -T15 http://$(cat /etc/config/nodewatcher | grep url | awk '{ print $3 }' | sed -e "s/\]'//g" -e "s/'\[//g")/api_nodewatcher.php?section=get_hostnames_and_mac -O - | grep -v -e "^..-..-" | sort -u > /etc/bat-hosts
wget -T15 http://[`uci get configurator.@api[0].ipv6_address`%`uci get configurator.@api[0].ipv6_interface`]/api_nodewatcher.php?section=get_hostnames_and_mac -O - | grep -v -e "^..-..-" | sort -u > /etc/bat-hosts