Source
log_error ("Error: no APPEND-line found in syslinux-template\n");
/*----------------------------------------------------------------------------
* mk_syslinux.c - create syslinux.cfg-file
*
* Copyright (c) 2003 Gernot Miksch
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Creation: 27.2.2003 gm
* Last Update:
*----------------------------------------------------------------------------
*/
int
mk_syslinux (char * fname_s,char * fname_d)
{
char buf[256];
char *p, *p1;
FILE * fp_s;
FILE * fp_d;
char console[40];
int line,error;
int debug_startup = 0;
char * debug_log = NULL;
char * boot_param = "";
char * ext_boot_param = "";
char * tag_str = "TAG";
char timeout_str[20] = "TIMEOUT 50";
error=OK;
console[0]='\0';
fp_s = fopen (fname_s, "r"); /* open template-file */
if (! fp_s)
{
log_error ("Error while opening template file '%s': %s\n",
fname_s, strerror (errno));
error=ERR_MKSYSL_TMPL;
}
else
{
fp_d = fopen (fname_d, "w"); /* open destination-file */
if (! fp_d)
{
log_error ("Error while opening destination file '%s': %s\n",
fname_d, strerror (errno));
error=ERR_MKSYSL_CFG;