wm: teppich

Download patch

ref: a9ee87279fb13fb9e068fbd97475b4deb2295779
parent: 7465ef2dfc96bcfdd74df3fedbebca033c928cc9
author: mkf <mkf@cloud9p.org>
date: Thu Dec 7 13:04:07 EST 2023

kern.c: ask to login

--- a/pc/kern.c
+++ b/pc/kern.c
@@ -3,6 +3,7 @@
 #include <mem.h>
 #include <cons.h>
 #include <user.h>
+#include <err.h>
 
 #include "../cmd/rc.h"
 
@@ -15,7 +16,12 @@
 	cons_init(pccons);
 	cons_write(bitcons, "Teppich");
 	users_init();
-	cuser = adam;
 
-	rc_main();
+	while(1)
+	{
+		if(login_main(1, nil) != OK)
+			continue;
+
+		rc_main();
+	}
 }