summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/install_initd.c
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/runlevel/install_initd.c')
-rw-r--r--urunlevel/runlevel/install_initd.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/urunlevel/runlevel/install_initd.c b/urunlevel/runlevel/install_initd.c
new file mode 100644
index 0000000..4b9ab88
--- /dev/null
+++ b/urunlevel/runlevel/install_initd.c
@@ -0,0 +1,48 @@
1/*
2 * Mini install_initd implementation for busybox.
3 *
4 * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 * 02111-1307 USA
20 *
21 */
22
23#include <unistd.h>
24
25#include "busybox.h"
26#include "lib_init_d.h"
27
28
29int install_initd_main(int argc, char **argv)
30{
31 llist_t *sorted = NULL;
32 llist_t *unsorted = get_scripts();
33// char *info_text = NULL;
34// char *pathname = NULL;
35// init_d_info_t *info = NULL;
36
37// bb_xasprintf(&pathname, "/etc/init.d/%s", script->d_name);
38// info_text = get_init_info(pathname);
39// info = parse_init_info(info_text, script->d_name);
40// if (info)
41// result = llist_add_to(result, (char *) info);
42
43 sorted = sort_scripts(unsorted);
44// Should return 1 if this script is in unsorted.
45
46// free(info_text);
47 return EXIT_SUCCESS;
48}