|
|
|
@ -2184,6 +2184,26 @@ FTLinstall() {
|
|
|
|
|
popd > /dev/null || { printf "Unable to return to original directory after FTL binary download.\\n"; return 1; }
|
|
|
|
|
# Install the FTL service
|
|
|
|
|
printf "%b %b %s\\n" "${OVER}" "${TICK}" "${str}"
|
|
|
|
|
return 0
|
|
|
|
|
# Otherwise,
|
|
|
|
|
else
|
|
|
|
|
# the download failed, so just go back to the original directory
|
|
|
|
|
popd > /dev/null || { printf "Unable to return to original directory after FTL binary download.\\n"; return 1; }
|
|
|
|
|
printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}"
|
|
|
|
|
printf " %bError: Download of %s/%s failed (checksum error)%b\\n" "${COL_LIGHT_RED}" "${url}" "${binary}" "${COL_NC}"
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
# Otherwise,
|
|
|
|
|
else
|
|
|
|
|
popd > /dev/null || { printf "Unable to return to original directory after FTL binary download.\\n"; return 1; }
|
|
|
|
|
printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}"
|
|
|
|
|
# The URL could not be found
|
|
|
|
|
printf " %bError: URL %s/%s not found%b\\n" "${COL_LIGHT_RED}" "${url}" "${binary}" "${COL_NC}"
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
disable_dnsmasq() {
|
|
|
|
|
# dnsmasq can now be stopped and disabled if it exists
|
|
|
|
|
if which dnsmasq &> /dev/null; then
|
|
|
|
|
if check_service_active "dnsmasq";then
|
|
|
|
@ -2202,24 +2222,6 @@ FTLinstall() {
|
|
|
|
|
fi
|
|
|
|
|
# Create /etc/dnsmasq.conf
|
|
|
|
|
echo "conf-dir=/etc/dnsmasq.d" > "${conffile}"
|
|
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
# Otherwise,
|
|
|
|
|
else
|
|
|
|
|
# the download failed, so just go back to the original directory
|
|
|
|
|
popd > /dev/null || { printf "Unable to return to original directory after FTL binary download.\\n"; return 1; }
|
|
|
|
|
printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}"
|
|
|
|
|
printf " %bError: Download of %s/%s failed (checksum error)%b\\n" "${COL_LIGHT_RED}" "${url}" "${binary}" "${COL_NC}"
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
# Otherwise,
|
|
|
|
|
else
|
|
|
|
|
popd > /dev/null || { printf "Unable to return to original directory after FTL binary download.\\n"; return 1; }
|
|
|
|
|
printf "%b %b %s\\n" "${OVER}" "${CROSS}" "${str}"
|
|
|
|
|
# The URL could not be found
|
|
|
|
|
printf " %bError: URL %s/%s not found%b\\n" "${COL_LIGHT_RED}" "${url}" "${binary}" "${COL_NC}"
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get_binary_name() {
|
|
|
|
|