Last change
on this file since 26ffad7 was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[e16e8f2] | 1 | /* ----------------------------------------------------------------------- * |
---|
| 2 | * |
---|
| 3 | * Copyright 2009 H. Peter Anvin - All Rights Reserved |
---|
| 4 | * |
---|
| 5 | * This program is free software; you can redistribute it and/or modify |
---|
| 6 | * it under the terms of the GNU General Public License as published by |
---|
| 7 | * the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
---|
| 8 | * Boston MA 02110-1301, USA; either version 2 of the License, or |
---|
| 9 | * (at your option) any later version; incorporated herein by reference. |
---|
| 10 | * |
---|
| 11 | * ----------------------------------------------------------------------- */ |
---|
| 12 | |
---|
| 13 | /* |
---|
| 14 | * config.c |
---|
| 15 | * |
---|
| 16 | * Loads a new configuration file |
---|
| 17 | * |
---|
| 18 | * Usage: config filename |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #include <stdio.h> |
---|
| 22 | #include <console.h> |
---|
| 23 | #include <syslinux/boot.h> |
---|
| 24 | |
---|
| 25 | int main(int argc, char *argv[]) |
---|
| 26 | { |
---|
| 27 | if (argc < 2 || argc > 3) { |
---|
| 28 | fprintf(stderr, "Usage: config <filename> [<directory>]\n"); |
---|
| 29 | return 1; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | syslinux_run_kernel_image(argv[1], argv[2] ? argv[2] : "", |
---|
| 33 | 0, IMAGE_TYPE_CONFIG); |
---|
| 34 | |
---|
| 35 | fprintf(stderr, "config: %s: failed to load (missing file?)\n", argv[1]); |
---|
| 36 | return 1; |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.