mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 13:24:27 +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 */
|
/* https://github.com/cirosantilli/linux-kernel-module-cheat#poweroff-out */
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 700
|
#define _XOPEN_SOURCE 700
|
||||||
#include <stdio.h>
|
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
puts(__FILE__);
|
|
||||||
reboot(RB_POWER_OFF);
|
reboot(RB_POWER_OFF);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user