aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-08-12 20:37:01 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-08-12 20:41:20 +0300
commit3adb8ded07a4e956cce50490ba105e64974612bf (patch)
treefc668c900fa401eab6b7c251c588196ce2656d46
parent4ea3a47eab5a9f6950507b82c10cee72fd6063b1 (diff)
downloadminit-master.tar.gz
minit-master.zip
minit.c: copyright notice and info messagesHEADv1.0.0master
* Add copyright and license notice to the top of the file. * Add some pretty stdout messages with version info and a link to the repo.
-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!");