Skip to content

Commit 033b81d

Browse files
committed
Minor updates to linuxpba.
Give the user time to view unlock results. Fix unwanted logging.
1 parent 70ac2c4 commit 033b81d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LinuxPBA/LinuxPBA.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This software is Copyright 2014-2017 Bright Plaza Inc. <[email protected]
2323
#include <sys/reboot.h>
2424
#include <iostream>
2525
#include "log.h"
26+
#include "DtaOptions.h"
2627
#include "GetPassPhrase.h"
2728
#include "UnlockSEDs.h"
2829

@@ -33,7 +34,8 @@ sedutiloutput outputFormat = sedutilNormal;
3334

3435
int main(int argc, char** argv) {
3536

36-
CLog::Level() = CLog::FromInt(0);
37+
CLog::Level() = CLog::FromInt(2);
38+
RCLog::Level() = CLog::FromInt(2);
3739
LOG(D4) << "Legacy PBA start" << endl;
3840
// system ("tput clear");
3941
printf("DTA LINUX Pre Boot Authorization \n");
@@ -42,6 +44,7 @@ int main(int argc, char** argv) {
4244
if (strcmp(p.c_str(), "debug")) {
4345
printf("Starting OS \n");
4446
sync();
47+
usleep(5000000); // give the user time to see results
4548
reboot(RB_AUTOBOOT);
4649
}
4750
return 0;

0 commit comments

Comments
 (0)