CoolPotOS/apps/init/init.c

13 lines
333 B
C

#include "../include/stdio.h"
#include "../include/cpos.h"
int main(){
printf("Init service launched.\n");
int pid = exec_elf("shell.bin");
printf("Launching shell pid [%d]\n",pid);
if(pid != -1){
printf("Shell launch win! PID:[%d]\n",pid);
} else printf("Error: Cannot launch shell\n");
return 0;
}