5 Commits

4 changed files with 35 additions and 5 deletions

View File

@ -9,7 +9,7 @@
* process multiple drives at once
## Download USB Image ##
[2.5GB image v1.0.0](https://schuttercloud.com/s/ggxGH9sA326aRfK) (`wget` is your friend)
See reHDD-Bootable how the live image created: https://git.mosad.xyz/localhorst/reHDD-Bootable
Use [Etcher](https://www.balena.io/etcher/#download) or `dd` to create an bootable USB drive .

View File

@ -8,7 +8,7 @@
#ifndef REHDD_H_
#define REHDD_H_
#define REHDD_VERSION "V1.1.2"
#define REHDD_VERSION "V1.1.3"
// Drive handling Settings
#define WORSE_HOURS 19200 // mark drive if at this limit or beyond

View File

@ -6,6 +6,7 @@
*/
#include "../include/reHDD.h"
#include "../include/printer.h"
/**
* \brief app entry point
@ -14,9 +15,32 @@
*/
int main(void)
{
// cout << "refurbishingHddTool" << endl;
cout << "refurbishingHddTool" << endl;
reHDD *app = new reHDD();
app->app_logic();
Drive *tmpDrive = new Drive("/dev/");
tmpDrive->setActionStartTimestamp();
tmpDrive->bWasShredded = true;
tmpDrive->setDriveSMARTData("modelFamily",
"modelName",
"serial",
420000,
43,
44,
45,
46);
while(true){
cout << "send" << endl;
Printer::getPrinter()->print(tmpDrive);
sleep(5); // sleep 5 sec
break;
}
cout << "exit" << endl;
// reHDD *app = new reHDD();
// app->app_logic();
return EXIT_SUCCESS;
}

View File

@ -665,6 +665,12 @@ bool reHDD::getSystemDrive(string &systemDrive)
break;
}
if (currentLine.ends_with(" /run/overlay/live\n"s))
{
systemDriveFound = true;
break;
}
if (currentLine.ends_with(" /\n"s))
{
systemDriveFound = true;