summaryrefslogtreecommitdiff
path: root/usr.sbin/init
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-17 20:59:31 -0400
committerIan Moffett <ian@osmora.org>2024-03-17 20:59:31 -0400
commit0776264c266e7c1619b8b8b84d2da5384979bb3c (patch)
tree80b6ded012336e24c72cc2c16e4c3ce952b7b739 /usr.sbin/init
parent7895aaff402a021a1b04645ca8d251f760e5662e (diff)
parent2896f4126de2ee0fd1bab4b960bfb2213c359f18 (diff)
Merge branch 'user' into dev
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);
+}