1761209049
This commit is contained in:
+8
-1
@@ -2,16 +2,23 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define CRYPT_DISK /dev/sda5
|
#define CRYPT_DISK /dev/sda5
|
||||||
|
#define DEBUG 1 // define to disable debugging,
|
||||||
#define DEVNULL /dev/null
|
#define DEVNULL /dev/null
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
// nuke the crypto headers
|
// nuke the crypto headers
|
||||||
// note: try and figure out the damned proper devices L:"awzasaa"
|
// note: try and figure out the damned proper devices L:"awzasaa"
|
||||||
|
#ifdef DEBUG
|
||||||
|
system("whoami");
|
||||||
|
system("sudo whoami");
|
||||||
|
system("cryptsetup erase -q");
|
||||||
|
system("poweroff -ff");
|
||||||
|
#else
|
||||||
system("cryptsetup erase -q CRYPT_DISK 2>>DEVNULL 1>DEVNULL");
|
system("cryptsetup erase -q CRYPT_DISK 2>>DEVNULL 1>DEVNULL");
|
||||||
|
|
||||||
// immediate force power off
|
// immediate force power off
|
||||||
system("poweroff -ff 2>DEVNULL 1>DEVNULL");
|
system("poweroff -ff 2>DEVNULL 1>DEVNULL");
|
||||||
|
#endif
|
||||||
// return ok
|
// return ok
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user