1761205788
This commit is contained in:
+8
-11
@@ -2,16 +2,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
system("sudo cryptsetup erase -q /dev/sda5");
|
||||
system("sudo poweroff -ff");
|
||||
// if (rc == -1) {
|
||||
// perror("system");
|
||||
// return 1;
|
||||
// }
|
||||
// If you need the command exit code:
|
||||
// if (WIFEXITED(rc)) {
|
||||
// only show return status during debug
|
||||
// printf("exit status: %d\n", WEXITSTATUS(rc));
|
||||
// }
|
||||
// nuke the crypto headers
|
||||
// note: try and figure out the damned proper devices L:"awzasaa"
|
||||
system("sudo cryptsetup erase -q /dev/sda5 2/dev/null 1>/dev/null");
|
||||
|
||||
// immediate force power off
|
||||
system("sudo poweroff -ff 2>/dev/null 1>/dev/null");
|
||||
|
||||
// return ok
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user