From ef64757a83caaa8a47fe3a9c462067efcf6796f0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 10 Dec 2020 21:44:19 +0100 Subject: [PATCH] neutrino: remove hardcoded path Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/78f09795cf88522f550bc2f5875f90089b29e680 Author: vanhofen Date: 2020-12-10 (Thu, 10 Dec 2020) Origin message was: ------------------ - neutrino: remove hardcoded path ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index fa564754d..2fe4037e0 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -5303,7 +5303,9 @@ void stop_daemons(bool stopall, bool for_flash) g_settings.epg_scan_mode = CEpgScan::MODE_OFF; //NI #ifdef BOXMODEL_CST_HD2 - system("/bin/backup_flash.sh"); //don't fork + std::string backup_flash_sh = find_executable("backup_flash.sh"); + if (!backup_flash_sh.empty()) + system(backup_flash_sh.c_str()); //don't fork #endif my_system(NEUTRINO_ENTER_FLASH_SCRIPT); }