From 240ff8c1d9e5b03d27804490767c15b7877305a2 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 23 Oct 2019 23:08:49 -0500 Subject: fetch: Stub out FullAuto TFTP thinger --- fetch/fetch.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/fetch/fetch.cc b/fetch/fetch.cc index 5f696be..b1a9f56 100644 --- a/fetch/fetch.cc +++ b/fetch/fetch.cc @@ -149,6 +149,13 @@ int process_maybe_remote(const std::string &path) { } +/*! Figure out the TFTP path(s) to try, and use them */ +int full_auto_tftp() { + output_error("tftp", "stub!"); + return EXIT_FAILURE; +} + + /* * The goal of the Locator is to find the HorizonScript for this computer, * which is the target, and copy it to the well-known path /etc/horizon @@ -178,9 +185,13 @@ int main(int argc, char *argv[]) { return EXIT_SUCCESS; } - output_error("internal", "Fully Remote HorizonScript downloading " - "is not yet implemented"); - return EXIT_FAILURE; + if(protos.find("tftp") == protos.end()) { + output_error("internal", "A Fully Automatic installation requires " + "Horizon to be built with TFTP support"); + return EXIT_FAILURE; + } else { + return full_auto_tftp(); + } } std::string path(argv[1]); -- cgit v1.2.3-60-g2f50