mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
neutrino: apply HDD settings without blocking
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1826 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -217,7 +217,7 @@ int CHDDDestExec::exec(CMenuTarget* /*parent*/, const std::string&)
|
|||||||
g_settings.hdd_noise, g_settings.hdd_sleep, namelist[i]->d_name);
|
g_settings.hdd_noise, g_settings.hdd_sleep, namelist[i]->d_name);
|
||||||
//hdparm -M is not included in busybox hdparm!
|
//hdparm -M is not included in busybox hdparm!
|
||||||
//we need full version of hdparm or should remove -M parameter here
|
//we need full version of hdparm or should remove -M parameter here
|
||||||
snprintf(cmd, sizeof(cmd), "hdparm -M%d -S%d /dev/%s >/dev/null 2>/dev/null",
|
snprintf(cmd, sizeof(cmd), "hdparm -M%d -S%d /dev/%s >/dev/null 2>/dev/null &",
|
||||||
g_settings.hdd_noise, g_settings.hdd_sleep, namelist[i]->d_name);
|
g_settings.hdd_noise, g_settings.hdd_sleep, namelist[i]->d_name);
|
||||||
system(cmd);
|
system(cmd);
|
||||||
free(namelist[i]);
|
free(namelist[i]);
|
||||||
|
Reference in New Issue
Block a user