My linux box prefers an ipv6 address for some reason which doesn't resolve.
Might need to update factorcode ipv6 settings, too.
check_url() {
if [[ $DOWNLOADER_NAME == 'wget' ]]; then
- if [[ $(wget -S --spider $1 2>&1 | grep 'HTTP/1.1 200 OK') ]]; then
+ if [[ $(wget -S --spider --prefer-family=IPv4 $1 2>&1 | grep 'HTTP/1.1 200 OK') ]]; then
return 0
else
return 1
set_boot_image_vars() {
set_current_branch
local url="https://downloads.factorcode.org/images/${CURRENT_BRANCH}/checksums.txt"
+ $ECHO "Getting checksum from ${url}"
check_url $url
+ $ECHO "got checksum!"
if [[ $? -eq 0 ]]; then
CHECKSUM_URL="$url"
BOOT_IMAGE_URL="https://downloads.factorcode.org/images/${CURRENT_BRANCH}/${BOOT_IMAGE}"