diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-23 16:31:45 -0700 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-23 16:33:28 -0700 |
| commit | 2e8b89f8b2d711a1689067834113483610fa18cd (patch) | |
| tree | 76d4691a58d3f5aa0bf9ea2c49624b2744dd07d3 /extlinux | |
| parent | 3ee5120d0795b361c3548e9bb13cadf33802f73a (diff) | |
| download | syslinux-2e8b89f8b2d711a1689067834113483610fa18cd.tar.gz | |
Move modify_adv() into common code
modify_adv() should be used by any installer which uses the common
CLI, so it should go into syslxopt.c.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'extlinux')
| -rw-r--r-- | extlinux/main.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/extlinux/main.c b/extlinux/main.c index c0a37ef1..7b0b467b 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -279,31 +279,6 @@ int patch_file_and_bootblock(int fd, const char *dir, int devfd) } /* - * Make any user-specified ADV modifications - */ -int modify_adv(void) -{ - int rv = 0; - - if (opt.set_once) { - if (syslinux_setadv(ADV_BOOTONCE, strlen(opt.set_once), opt.set_once)) { - fprintf(stderr, "%s: not enough space for boot-once command\n", - program); - rv = -1; - } - } - if (opt.menu_save) { - if (syslinux_setadv(ADV_MENUSAVE, strlen(opt.menu_save), opt.menu_save)) { - fprintf(stderr, "%s: not enough space for menu-save label\n", - program); - rv = -1; - } - } - - return rv; -} - -/* * Install the boot block on the specified device. * Must be run AFTER install_file()! */ |
