diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2025-08-12 20:37:01 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2025-08-12 20:41:20 +0300 |
commit | 3adb8ded07a4e956cce50490ba105e64974612bf (patch) | |
tree | fc668c900fa401eab6b7c251c588196ce2656d46 | |
parent | 4ea3a47eab5a9f6950507b82c10cee72fd6063b1 (diff) | |
download | minit-master.tar.gz minit-master.zip |
* 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.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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!"); |