From 3adb8ded07a4e956cce50490ba105e64974612bf Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Tue, 12 Aug 2025 20:37:01 +0300 Subject: minit.c: copyright notice and info messages * 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. --- minit.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 + * + * 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 #include #include @@ -12,9 +22,12 @@ int main(int argc, char *argv[]) { if (argc < 2) { puts("usage: minit "); + 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!"); -- cgit v1.2.3