Add a simple GUI
[qi-bootmenu/guyou.git] / qi-bootmenu.c
blob7fdf55428310bdb764394ca3a531ff5e2f41c7fc
1 /*
2 * qi-bootmenu - A kexec based bootloader with an elementary based GUI
4 * Copyright (c) 2009 Marc Andre Tanner <mat@brain-dump.org>
6 * qi-bootmenu shares the basic idea and some small code snippets with
7 * kexecboot which is written by:
9 * Copyright (c) 2008-2009 Yuri Bushmelev <jay4mail@gmail.com>
10 * Copyright (c) 2008 Thomas Kunze <thommycheck@gmx.de>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
15 * any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 #include <stdbool.h>
25 #include <Eina.h>
26 #include "qi-bootmenu.h"
27 #include "kexec.h"
29 int main(int argc, char **argv) {
31 if (!eina_mempool_init() || !eina_list_init())
32 return 1;
34 if (argc > 1 && argv[1][0] == '-') {
35 switch (argv[1][1]) {
36 case 'd':
37 diagnostics();
38 exit(0);
42 eina_list_shutdown();
44 return 0;