diff --git a/build-image/first-boot.bash b/build-image/first-boot.bash index 58daad014..6566b8d65 100755 --- a/build-image/first-boot.bash +++ b/build-image/first-boot.bash @@ -84,7 +84,7 @@ if [[ -z $wifi_ssid ]]; then echo -n "$(timestamp) [openHABian] Setting up Ethernet connection... " if grep -qs "up" /sys/class/net/eth0/operstate; then echo "OK"; else echo "FAILED"; fi - if ! running_in_docker && tryUntil "ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs |& grep -qs 'HTTP/1.1 200 OK'" 5 1; then + if ! running_in_docker && tryUntil "ping -c1 8.8.8.8 &> /dev/null || curl --silent --head http://www.openhab.org/docs/ |& grep -qs 'HTTP/[^ ]*[ ]200'" 5 1; then if [[ "$hotspot" == "enable" ]] && ! [[ -x $(command -v comitup) ]]; then echo -n "$(timestamp) [openHABian] Installing comitup hotspot (will reboot after)... " setup_hotspot "install"