diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-23 23:08:49 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-23 23:08:49 -0500 |
commit | 240ff8c1d9e5b03d27804490767c15b7877305a2 (patch) | |
tree | 70559697f5e5248d532f3078c4cc40dda6a441f5 | |
parent | 6b079c2266436814862300af8c4af21e806659b1 (diff) | |
download | horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.tar.gz horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.tar.bz2 horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.tar.xz horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.zip |
fetch: Stub out FullAuto TFTP thinger
-rw-r--r-- | fetch/fetch.cc | 17 |
1 files 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]); |