Lines Matching defs:bootcfg_info
45 struct bootcfg_def bootcfg_info;
111 memset(&bootcfg_info, 0, sizeof(bootcfg_info));
114 bootcfg_info.timeout = DEFAULT_TIMEOUT;
117 bootcfg_info.menuformat = DEFAULT_FORMAT;
203 bootcfg_info.desc[cmenu] = value;
208 bootcfg_info.command[cmenu] = v2;
210 bootcfg_info.desc[cmenu] = v2;
214 bootcfg_info.desc[cmenu] = NULL;
218 bootcfg_info.banner[cbanner++] = value;
221 bootcfg_info.timeout = -1;
223 bootcfg_info.timeout = atoi(value);
225 bootcfg_info.def = atoi(value) - 1;
227 bootcfg_info.consdev = value;
229 bootcfg_info.root = value;
235 bootcfg_info.menuformat = MENUFORMAT_AUTO;
242 bootcfg_info.menuformat = MENUFORMAT_NUMBER;
247 bootcfg_info.menuformat = MENUFORMAT_LETTER;
251 bootcfg_info.clear = !!atoi(value);
257 switch (bootcfg_info.menuformat) {
259 if (cmenu > 9 && bootcfg_info.timeout > 0)
260 bootcfg_info.menuformat = MENUFORMAT_LETTER;
262 bootcfg_info.menuformat = MENUFORMAT_NUMBER;
266 if (cmenu > 9 && bootcfg_info.timeout > 0)
271 bootcfg_info.nummenu = cmenu;
272 if (bootcfg_info.def < 0)
273 bootcfg_info.def = 0;
274 if (bootcfg_info.def >= cmenu)
275 bootcfg_info.def = cmenu - 1;
285 if (bootcfg_info.banner[0]) {
286 for (; n < BOOTCFG_MAXBANNER && bootcfg_info.banner[n]; n++)
287 printf("%s\n", bootcfg_info.banner[n]);