Compare commits
5 Commits
1.1.2
...
test/ipc-d
Author | SHA1 | Date | |
---|---|---|---|
a35cb111ee | |||
575cb73d95 | |||
1ceffa56f8 | |||
4ff1888333 | |||
4b33fb6fdb |
@ -9,7 +9,7 @@
|
|||||||
* process multiple drives at once
|
* process multiple drives at once
|
||||||
|
|
||||||
## Download USB Image ##
|
## 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 .
|
Use [Etcher](https://www.balena.io/etcher/#download) or `dd` to create an bootable USB drive .
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#ifndef REHDD_H_
|
#ifndef REHDD_H_
|
||||||
#define REHDD_H_
|
#define REHDD_H_
|
||||||
|
|
||||||
#define REHDD_VERSION "V1.1.2"
|
#define REHDD_VERSION "V1.1.3"
|
||||||
|
|
||||||
// Drive handling Settings
|
// Drive handling Settings
|
||||||
#define WORSE_HOURS 19200 // mark drive if at this limit or beyond
|
#define WORSE_HOURS 19200 // mark drive if at this limit or beyond
|
||||||
|
30
src/main.cpp
30
src/main.cpp
@ -6,6 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../include/reHDD.h"
|
#include "../include/reHDD.h"
|
||||||
|
#include "../include/printer.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief app entry point
|
* \brief app entry point
|
||||||
@ -14,9 +15,32 @@
|
|||||||
*/
|
*/
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
// cout << "refurbishingHddTool" << endl;
|
cout << "refurbishingHddTool" << endl;
|
||||||
|
|
||||||
reHDD *app = new reHDD();
|
Drive *tmpDrive = new Drive("/dev/");
|
||||||
app->app_logic();
|
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;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
@ -665,6 +665,12 @@ bool reHDD::getSystemDrive(string &systemDrive)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentLine.ends_with(" /run/overlay/live\n"s))
|
||||||
|
{
|
||||||
|
systemDriveFound = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (currentLine.ends_with(" /\n"s))
|
if (currentLine.ends_with(" /\n"s))
|
||||||
{
|
{
|
||||||
systemDriveFound = true;
|
systemDriveFound = true;
|
||||||
|
Reference in New Issue
Block a user