]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fix smartctrl should not wakeup sleeping hdd
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 10 Sep 2009 05:53:12 +0000 (07:53 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 10 Sep 2009 05:53:12 +0000 (07:53 +0200)
src/misc-progs/smartctrl.c

index 945c279f50164183ff4302af134c4ee633a86e73..a7491ee35ff9888e8d594f8ce9f99f51ea9681ad 100644 (file)
@@ -28,7 +28,7 @@ int main(int argc, char *argv[]) {
         }
 
 
         }
 
 
-        sprintf(command, "/tmp/hddshutdown-%s", argv[1]);
+        sprintf(command, "/var/run/hddshutdown-%s", argv[1]);
         FILE *fp = fopen(command,"r");
        if( fp ) {
                fclose(fp);
         FILE *fp = fopen(command,"r");
        if( fp ) {
                fclose(fp);