summaryrefslogtreecommitdiff
path: root/fetch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-23 23:08:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-23 23:08:49 -0500
commit240ff8c1d9e5b03d27804490767c15b7877305a2 (patch)
tree70559697f5e5248d532f3078c4cc40dda6a441f5 /fetch
parent6b079c2266436814862300af8c4af21e806659b1 (diff)
downloadhorizon-240ff8c1d9e5b03d27804490767c15b7877305a2.tar.gz
horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.tar.bz2
horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.tar.xz
horizon-240ff8c1d9e5b03d27804490767c15b7877305a2.zip
fetch: Stub out FullAuto TFTP thinger
Diffstat (limited to 'fetch')
-rw-r--r--fetch/fetch.cc17
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]);