mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
poweroff: dont print anything
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#poweroff-out */
|
||||
|
||||
#define _XOPEN_SOURCE 700
|
||||
#include <stdio.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(void) {
|
||||
puts(__FILE__);
|
||||
reboot(RB_POWER_OFF);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user