mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
helpers: remove hardcoded path
Origin commit data
------------------
Branch: ni/coolstream
Commit: cc3b296ebb
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-12-10 (Thu, 10 Dec 2020)
Origin message was:
------------------
- helpers: remove hardcoded path
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -110,16 +110,18 @@ void wakeup_hdd(const char *hdd_dir, bool msg)
|
|||||||
//NI
|
//NI
|
||||||
CHintBox loadBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_HDD_WAKEUP_START));
|
CHintBox loadBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_HDD_WAKEUP_START));
|
||||||
|
|
||||||
if(!g_settings.hdd_wakeup_msg)
|
if (!g_settings.hdd_wakeup_msg)
|
||||||
msg = false;
|
msg = false;
|
||||||
if(msg)
|
if (msg)
|
||||||
loadBox.paint();
|
loadBox.paint();
|
||||||
std::string s = check_var("/bin/wakeup.sh");
|
|
||||||
my_system(2,s.c_str(),hdd_dir);
|
std::string wakeup_sh = find_executable("wakeup.sh");
|
||||||
|
if (!wakeup_sh.empty())
|
||||||
|
my_system(2, wakeup_sh.c_str(), hdd_dir);
|
||||||
|
|
||||||
if (!g_settings.hdd_wakeup) {
|
if (!g_settings.hdd_wakeup) {
|
||||||
printf("[hdd] internal wakeup disabled\n");
|
printf("[hdd] internal wakeup disabled\n");
|
||||||
if(msg)
|
if (msg)
|
||||||
loadBox.hide();
|
loadBox.hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -144,9 +146,10 @@ void wakeup_hdd(const char *hdd_dir, bool msg)
|
|||||||
remove(wakeup_file.c_str());
|
remove(wakeup_file.c_str());
|
||||||
}
|
}
|
||||||
//NI
|
//NI
|
||||||
if(msg)
|
if (msg)
|
||||||
loadBox.hide();
|
loadBox.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
//use for script with full path
|
//use for script with full path
|
||||||
int my_system(const char * cmd)
|
int my_system(const char * cmd)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user