mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
Prototype support for /etc/netork/interfaces
This patch adds prototype support for the Debian/Ubuntu/Busybox network configuration file /etc/netork/interfaces. If this file exists Finit will call `ifup` for each (non-commented-out) interface marked `auto`. With this implementation we block boot until all ifup commands have returned, which is less than ideal. A better approach would be to ifup only loopback and create deferred tasklets to be run in parallel with the rest of the boot. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
42181a3031
commit
6380f17d1f
4 files changed
+53
-26
No files matched your search
@@ -23,7 +23,6 @@
|
||||
|
||||
#include "config.h" /* Generated by configure script */
|
||||
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <sys/resource.h>
|
||||
@@ -41,23 +40,6 @@
|
||||
static int parse_conf(char *file);
|
||||
|
||||
|
||||
static char *strip_line(char *line)
|
||||
{
|
||||
char *ptr;
|
||||
|
||||
/* Trim leading whitespace */
|
||||
while (*line && isblank(*line))
|
||||
line++;
|
||||
|
||||
/* Strip any comment at end of line */
|
||||
ptr = line;
|
||||
while (*ptr && *ptr != '#')
|
||||
ptr++;
|
||||
*ptr = 0;
|
||||
|
||||
return line;
|
||||
}
|
||||
|
||||
void conf_parse_cmdline(void)
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
Reference in new issue
Block a user