mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Add option to use built-in run-parts instead of /bin/run-parts
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
6371f82fea
commit
434ec4c533
6 files changed
+19
-7
No files matched your search
@@ -10,8 +10,11 @@
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#ifdef BUILTIN_RUNPARTS
|
||||
#include <dirent.h>
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#include "helpers.h"
|
||||
|
||||
@@ -93,13 +96,7 @@ void copyfile(char *src, char *dst, int size)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
/* Running the system /bin/run-parts is good enough, enable this if you
|
||||
can't use it. Some distributions have it under /usr/bin, in this case
|
||||
you can assume that the distribution is broken or run-parts is not used
|
||||
in the boot process.
|
||||
*/
|
||||
#ifdef BUILTIN_RUNPARTS
|
||||
|
||||
#define NUM_SCRIPTS 128 /* ought to be enough for anyone */
|
||||
#define NUM_ARGS 16
|
||||
|
||||
Reference in new issue
Block a user