}
- sprintf(command, "/tmp/hddshutdown-%s", argv[1]);
+ sprintf(command, "/var/run/hddshutdown-%s", argv[1]);
FILE *fp = fopen(command,"r");
if( fp ) {
fclose(fp);
exit(1);
}
- sprintf(command, "smartctl -x /dev/%s", argv[1]);
+ sprintf(command, "smartctl -iHA /dev/%s", argv[1]);
safe_system(command);
return 0;