summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-10-03 12:14:48 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-10-03 12:17:00 +0200
commitd1734b30ec57588fe6fbaffe3482453b92e5a949 (patch)
tree4ec2f148dfcfa333b0c59b3b210104d32071a848 /src/rest.c
parent89ba3f1b4f1688e56a34adc4ae0b24971ba6649c (diff)
rest: add fetch param to boot mode configuration
Add "fetch=http://IP_REPO/OGLIVEDIR/filesystem.squashfs" string to the client boot mode configuration.
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rest.c b/src/rest.c
index f33486c..3f10685 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -1553,7 +1553,7 @@ static int og_get_client_mode_params(struct og_dbi *dbi, const char *mac, char *
}
snprintf(params, params_size,
- " LANG=%s ip=%s:%s:%s:%s:%s:%s:none group=%s ogrepo=%s oglive=%s oglog=%s ogshare=%s oglivedir=%s ogprof=%s server=%s"
+ " LANG=%s ip=%s:%s:%s:%s:%s:%s:none group=%s ogrepo=%s oglive=%s oglog=%s ogshare=%s oglivedir=%s ogprof=%s server=%s fetch=http://%s/%s/filesystem.squashfs"
"%s%s%s%s%s%s%s%s%s%s%s%s",
lang,
boot_params.ip, server_ip, boot_params.router, boot_params.netmask, boot_params.nombreordenador, boot_params.netiface,
@@ -1563,6 +1563,8 @@ static int og_get_client_mode_params(struct og_dbi *dbi, const char *mac, char *
boot_params.oglivedir,
boot_params.is_prof ? "true" : "false",
server_ip,
+ repository_ip,
+ boot_params.oglivedir,
boot_params.hardprofile[0] ? " hardprofile=" : "", boot_params.hardprofile[0] ? boot_params.hardprofile: "",
boot_params.ntp[0] ? " ogntp=" : "", boot_params.ntp[0] ? boot_params.ntp : "",
boot_params.dns[0] ? " ogdns=" : "", boot_params.dns[0] ? boot_params.dns : "",