summaryrefslogtreecommitdiff
path: root/usr.sbin/init
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-07 22:46:25 -0500
committerIan Moffett <ian@osmora.org>2024-03-07 22:46:25 -0500
commit3154c067ebd5e23b8be9693a1a790c70a9634344 (patch)
tree595019d0f0cd2224a9763295fa5a01cda5b8fe22 /usr.sbin/init
parent59df7bdadbfd50bfaf95cde442c7380cce535254 (diff)
build: Create init stub
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin/init')
-rw-r--r--usr.sbin/init/Makefile7
-rwxr-xr-xusr.sbin/init/initbin0 -> 944 bytes
-rw-r--r--usr.sbin/init/main.c6
3 files changed, 13 insertions, 0 deletions
diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile
new file mode 100644
index 0000000..4b578f8
--- /dev/null
+++ b/usr.sbin/init/Makefile
@@ -0,0 +1,7 @@
+CC =
+LD =
+
+.PHONY: all
+all:
+ $(CC) -c main.c -o main.o;
+ $(LD) main.o -o init -e main
diff --git a/usr.sbin/init/init b/usr.sbin/init/init
new file mode 100755
index 0000000..8b83844
--- /dev/null
+++ b/usr.sbin/init/init
Binary files differ
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);
+}