From: Arne Fitzenreiter Date: Thu, 10 Sep 2009 05:53:12 +0000 (+0200) Subject: Fix smartctrl should not wakeup sleeping hdd X-Git-Tag: v2.5-core31~31 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=6e2dba423e2fc2a085ad9a4fdb355e90e3a3b106 Fix smartctrl should not wakeup sleeping hdd --- diff --git a/src/misc-progs/smartctrl.c b/src/misc-progs/smartctrl.c index 945c279f50..a7491ee35f 100644 --- a/src/misc-progs/smartctrl.c +++ b/src/misc-progs/smartctrl.c @@ -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);