summaryrefslogtreecommitdiff
path: root/minit.c
diff options
context:
space:
mode:
Diffstat (limited to 'minit.c')
-rw-r--r--minit.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/minit.c b/minit.c
index 7ea9688..323c688 100644
--- a/minit.c
+++ b/minit.c
@@ -1,3 +1,13 @@
+/**
+ * minit.c - A minimal init; as stupid as it gets.
+ *
+ * Copyright (c) 2025 - Yaroslav de la Peña Smirnov <yps@yaroslavps.com>
+ *
+ * This is free software, which you can redistribute and/or modify under the
+ * terms of the GNU General Public License, version 2.0 only. For more
+ * information read the COPYING and LICENSE files provided in the original
+ * source repository.
+ */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -12,9 +22,12 @@ int main(int argc, char *argv[])
{
if (argc < 2) {
puts("usage: minit <command>");
+ puts("more info: git.yaroslavps.com/minit/about/");
exit(1);
}
+ puts("=== minit v1.0.0 ===");
+
int rc = mount("proc", "/proc", "proc", 0, NULL);
if (rc)
puts("warning: unable to mount proc!");