20 lines
545 B
C
Executable File
20 lines
545 B
C
Executable File
#include "slcore.h"
|
|
|
|
int main() {
|
|
// 1. Mount essential filesystems
|
|
//mount("proc", "/proc", "proc", 0, NULL);
|
|
//mount("sysfs", "/sys", "sysfs", 0, NULL);
|
|
//mount("devtmpfs", "/dev", "devtmpfs", 0, NULL);
|
|
|
|
printf("Welcome to Sterling OS a GNU/Linux based software\n");
|
|
|
|
entry_shell();
|
|
entry_window_display_manager();
|
|
// char *shell_args[] = { "/bin/myshell", NULL };
|
|
// execv("/bin/myshell", shell_args);
|
|
|
|
// If execv returns, something went wrong
|
|
while(1) { sleep(100); }
|
|
return 0;
|
|
}
|