From bc1594924cb8af53780bdb825c1aaf21225363fe Mon Sep 17 00:00:00 2001 From: floh1111 Date: Wed, 11 Jan 2012 22:56:41 +0000 Subject: [PATCH] Update hostsupdate.sh do get the actual bat hosts. Tim can you to the tmp and ln stuff? --- root_file_system/default/etc/hostsupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root_file_system/default/etc/hostsupdate.sh b/root_file_system/default/etc/hostsupdate.sh index b146a1b..cb30c85 100644 --- a/root_file_system/default/etc/hostsupdate.sh +++ b/root_file_system/default/etc/hostsupdate.sh @@ -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