aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/init
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/init')
-rw-r--r--usr.sbin/init/Makefile8
-rw-r--r--usr.sbin/init/main.c6
2 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile
new file mode 100644
index 0000000..fa65c8d
--- /dev/null
+++ b/usr.sbin/init/Makefile
@@ -0,0 +1,8 @@
+CC =
+LD =
+LDSO =
+
+.PHONY: all
+all:
+ $(CC) -c main.c -o main.o;
+ $(LD) --dynamic-linker /usr/lib/ld.so $(LDSO) main.o -o init -e main
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c
new file mode 100644
index 0000000..af62d76
--- /dev/null
+++ b/usr.sbin/init/main.c
@@ -0,0 +1,6 @@
+int
+main(void)
+{
+ /* Do nothing */
+ while (1);
+}