rest: add "server=" boot param in set client mode

Store a client associated ogserver ip address in "server=" boot param.

Use this boot param to lookup for network-specific ogClient
configuration when launching ogClient during ogLive booting process.
master v1.2.4
Jose M. Guisado 2023-08-28 12:29:33 +02:00
parent 18eb19ab42
commit e080fd5526
1 changed files with 1 additions and 0 deletions

View File

@ -1108,6 +1108,7 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *mac,
"' ogshare=', @serverip, "
"' oglivedir=', ordenadores.oglivedir, "
"' ogprof=', IF(ordenadores.idordenador=aulas.idordprofesor, 'true', 'false'), "
"' server=', @ipserveradm, "
"IF(perfileshard.descripcion<>'', CONCAT(' hardprofile=', REPLACE(TRIM(perfileshard.descripcion), ' ', '_')), ''), "
"IF(aulas.ntp<>'', CONCAT(' ogntp=', aulas.ntp), ''), "
"IF(aulas.dns<>'', CONCAT(' ogdns=', aulas.dns), ''), "