Use standard smartctl.exe

This commit is contained in:
Andrea Mazzoleni 2015-02-27 23:33:16 +01:00
parent 779acb9cd1
commit 5812ec8bd8
2 changed files with 4 additions and 4 deletions

View file

@ -816,7 +816,7 @@ distwindows-x86: $(DISTWIN)
rm -f $(PACKAGE)-$(VERSION)-windows-x86.zip
mkdir tmp
cp $(DISTWIN) tmp
cp support/smartctl-nc.exe tmp/smartctl-nc.exe
cp support/smartctl.exe tmp/smartctl.exe
cp support/hdparm.exe tmp/hdparm.exe
utod < snapraid.conf.example.windows > tmp/snapraid.conf.example
utod < INSTALL.windows > tmp/install.txt
@ -832,7 +832,7 @@ distwindows-x64: $(DISTWIN)
rm -f $(PACKAGE)-$(VERSION)-windows-x64.zip
mkdir tmp
cp $(DISTWIN) tmp
cp support/smartctl-nc.exe tmp/smartctl-nc.exe
cp support/smartctl.exe tmp/smartctl.exe
cp support/hdparm.exe tmp/hdparm.exe
utod < snapraid.conf.example.windows > tmp/snapraid.conf.example
utod < INSTALL.windows > tmp/install.txt

View file

@ -2041,7 +2041,7 @@ static int devscan(tommy_list* list)
FILE* f;
int ret;
snwprintf(cmd, sizeof(cmd), L"\"%lssmartctl-nc.exe\" --scan-open -d pd", exedir);
snwprintf(cmd, sizeof(cmd), L"\"%lssmartctl.exe\" --scan-open -d pd", exedir);
f = _wpopen(cmd, L"rt");
if (!f) {
@ -2084,7 +2084,7 @@ static int devsmart(uint64_t device, uint64_t* smart, char* serial)
FILE* f;
int ret;
snwprintf(cmd, sizeof(cmd), L"\"%lssmartctl-nc.exe\" -a /dev/pd%" PRIu64, exedir, device);
snwprintf(cmd, sizeof(cmd), L"\"%lssmartctl.exe\" -a /dev/pd%" PRIu64, exedir, device);
f = _wpopen(cmd, L"rt");
if (!f) {