4215 |
struct singleEntry *new, *entry, *prev = NULL; |
struct singleEntry *new, *entry, *prev = NULL; |
4216 |
struct singleLine *newLine = NULL, *tmplLine = NULL, *masterLine = NULL; |
struct singleLine *newLine = NULL, *tmplLine = NULL, *masterLine = NULL; |
4217 |
int needs; |
int needs; |
4218 |
|
char *indexs; |
4219 |
char *chptr; |
char *chptr; |
4220 |
|
int rc; |
4221 |
|
|
4222 |
if (!newKernelPath) |
if (!newKernelPath) |
4223 |
return 0; |
return 0; |
4224 |
|
|
4225 |
|
rc = asprintf(&indexs, "%d", newIndex); |
4226 |
|
if (rc < 0) |
4227 |
|
return 1; |
4228 |
|
|
4229 |
/* if the newKernelTitle is too long silently munge it into something |
/* if the newKernelTitle is too long silently munge it into something |
4230 |
* we can live with. truncating is first check, then we'll just mess with |
* we can live with. truncating is first check, then we'll just mess with |
4231 |
* it until it looks better */ |
* it until it looks better */ |
4724 |
abort(); |
abort(); |
4725 |
} |
} |
4726 |
|
|
4727 |
if (updateImage(config, "0", prefix, newKernelArgs, NULL, |
if (updateImage(config, indexs, prefix, newKernelArgs, NULL, |
4728 |
newMBKernelArgs, NULL)) |
newMBKernelArgs, NULL)) |
4729 |
return 1; |
return 1; |
4730 |
|
|