mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- hdd_menu: fix hdd_sleep 'off'
This commit is contained in:
@@ -326,7 +326,7 @@ int CHDDDestExec::exec(CMenuTarget* /*parent*/, const std::string&)
|
|||||||
const char hdidle[] = "/sbin/hd-idle";
|
const char hdidle[] = "/sbin/hd-idle";
|
||||||
bool have_hdidle = !access(hdidle, X_OK);
|
bool have_hdidle = !access(hdidle, X_OK);
|
||||||
|
|
||||||
if (g_settings.hdd_sleep < 60)
|
if (g_settings.hdd_sleep > 0 && g_settings.hdd_sleep < 60)
|
||||||
g_settings.hdd_sleep = 60;
|
g_settings.hdd_sleep = 60;
|
||||||
|
|
||||||
if (have_hdidle) {
|
if (have_hdidle) {
|
||||||
|
Reference in New Issue
Block a user