summary refs log tree commit diff
path: root/sbin/init
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 56df6a6..d2fa095 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -5,15 +5,18 @@ int main() {
     __pid_t forkResult = fork();
     if (forkResult == 0) {
         //TODO - eventually add device scan
-        // __pid_t forkResult = fork();
-        // if (forkResult == 0) {
-        //     execve("/sbin/", 0, 0)
-        // } else {
-        //     execve("/sbin/", 0, 0)
-        // }
-        
-        // make tty1
-        execve("/sbin/fdmaker", 0, 0);
+        __pid_t forkResult = fork();
+        if (forkResult == 0) {
+            execve("/sbin/devscan", 0, 0);
+        } else {
+            write(1, "press RETURN to", 15);
+            char a[2] = {0};
+            read(0, a, 1);
+            // make tty1
+            execve("/sbin/fdmaker", 0, 0);
+        }
+        // execve("/sbin/devscan", 0, 0);
+        // execve("/sbin/fdmaker", 0, 0);
     } else {
         pause();
     }