using now system utils instead bin_util
This commit is contained in:
@ -55,7 +55,7 @@ void reHDD::searchDrives(vector <Drive>* pvecDrives)
|
||||
char * cLine = NULL;
|
||||
size_t len = 0;
|
||||
|
||||
FILE* outputfileHwinfo = popen("./bin_util/hwinfo --short --disk", "r");
|
||||
FILE* outputfileHwinfo = popen("hwinfo --short --disk", "r");
|
||||
|
||||
if (outputfileHwinfo == NULL)
|
||||
{
|
||||
@ -120,7 +120,7 @@ void reHDD::filterIgnoredDrives(vector <Drive>* pvecDrives)
|
||||
// cout << "Same drive path found" << endl;
|
||||
char * cLine = NULL;
|
||||
size_t len = 0;
|
||||
string sCMD = "./bin_util/blkid ";
|
||||
string sCMD = "blkid ";
|
||||
sCMD.append(it->getPath());
|
||||
// cout << "cmd: " << sCMD << endl;
|
||||
FILE* outputfileBlkid = popen(sCMD.c_str(), "r"); //get UUID from drive
|
||||
|
@ -33,7 +33,7 @@ void SMART::readSMARTData(Drive* drive)
|
||||
size_t len = 0; //lenght of found line
|
||||
char* cLine = NULL; //found line
|
||||
|
||||
string sCMD = ("./bin_util/smartctl --json -a ");
|
||||
string sCMD = ("smartctl --json -a ");
|
||||
sCMD.append(drive->getPath());
|
||||
const char* cpComand = sCMD.c_str();
|
||||
|
||||
|
@ -20,7 +20,7 @@ void Wipe::wipeDrive(Drive* drive)
|
||||
char* cLine = NULL; //found line
|
||||
|
||||
#ifndef DRYRUN
|
||||
string sCMD = ("./bin_util/shred -v ");
|
||||
string sCMD = ("shred -v ");
|
||||
sCMD.append(drive->getPath());
|
||||
#endif
|
||||
#ifdef DRYRUN
|
||||
|
Reference in New Issue
Block a user