Displaying 2 results from an estimated 2 matches for "find_init".
Did you mean:
file_init
2010 Apr 28
1
[PATCH] RFC: Running initscripts from kinit
...irent.h>
#include "kinit.h"
#include "ipconfig.h"
#include "run-init.h"
#include "resume.h"
+#define INITD "/etc/init.d"
+
const char *progname = "kinit";
int mnt_procfs;
int mnt_sysfs;
@@ -189,6 +193,70 @@ static const char *find_init(const char *root, const char *user)
return path;
}
+static int sort_compare(const void *a, const void *b)
+{
+ return strcmp(a, b);
+}
+
+/* Go through and run all scripts found in /etc/init.d */
+static void do_runscripts()
+{
+ DIR *dir;
+ struct dirent *dirent;
+ char **names = NULL;
+ unsi...
2011 Jul 13
9
[PATCH 0/8] switch_root() enhancements
On a train ride to Bruxelles, brought out my axe and directly attacked
run_init(8). run_init(8) is dead, long live switch_root(8).
The next run on switch_root(8) involves fdopendir,
so another push for the upcoming stdio 1.6 branch.
The following is boot tested with initramfs-tools,
kinit(8) tests would very much be appreciated!?
Michal Suchanek (1):
[klibc] switch_root: Fix single file