Kernel/LibC/Userspace: Add SYS_POWEROFF + cli tool
You can now shutdown/reboot banan-os with the poweroff cli tool. Reboot doesn't seem to work on qemu.
This commit is contained in:
@@ -6,3 +6,8 @@ int tty_ctrl(int fildes, int command, int flags)
|
||||
{
|
||||
return syscall(SYS_TTY_CTRL, fildes, command, flags);
|
||||
}
|
||||
|
||||
int poweroff(int command)
|
||||
{
|
||||
return syscall(SYS_POWEROFF, command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user