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