aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/init/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c
index d92538a..220d819 100644
--- a/usr.sbin/init/main.c
+++ b/usr.sbin/init/main.c
@@ -27,8 +27,25 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <string.h>
+#include <unistd.h>
+
+#define VERSION "v0.0.1"
+
+static void
+loginfo(const char *s)
+{
+ const char *tmp = "init [*]: ";
+
+ write(STDOUT_FILENO, tmp, strlen(tmp));
+ write(STDOUT_FILENO, s, strlen(s));
+}
+
int
main(int argc, char **argv)
{
+ loginfo("Hyra init " VERSION " loaded\n");
+ loginfo("Hello, World!\n");
+ loginfo("** EXITING 0 **\n");
return 0;
}