mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
scripts: move flash.start script away from control scripts
Origin commit data
------------------
Commit: fa17da4f0a
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-26 (Sun, 26 Sep 2021)
Origin message was:
------------------
- scripts: move flash.start script away from control scripts
This commit is contained in:
@@ -8,7 +8,6 @@ install_SCRIPTS = \
|
|||||||
audioplayer.end \
|
audioplayer.end \
|
||||||
deepstandby.on \
|
deepstandby.on \
|
||||||
deepstandby.off \
|
deepstandby.off \
|
||||||
flash.start \
|
|
||||||
inactivity.on \
|
inactivity.on \
|
||||||
migration.sh \
|
migration.sh \
|
||||||
movieplayer.start \
|
movieplayer.start \
|
||||||
|
@@ -12,6 +12,9 @@ install_SCRIPTS = \
|
|||||||
wakeup.sh \
|
wakeup.sh \
|
||||||
install.sh
|
install.sh
|
||||||
|
|
||||||
|
install_SCRIPTS += \
|
||||||
|
start_flash.sh \
|
||||||
|
|
||||||
if BOXMODEL_CST_HD2
|
if BOXMODEL_CST_HD2
|
||||||
install_SCRIPTS += \
|
install_SCRIPTS += \
|
||||||
backup_flash.sh \
|
backup_flash.sh \
|
||||||
|
2
data/control/flash.start → data/scripts/start_flash.sh
Executable file → Normal file
2
data/control/flash.start → data/scripts/start_flash.sh
Executable file → Normal file
@@ -3,5 +3,5 @@
|
|||||||
# kill start script first to ignore neutrino's exit codes
|
# kill start script first to ignore neutrino's exit codes
|
||||||
killall start_neutrino
|
killall start_neutrino
|
||||||
|
|
||||||
# run shutdown routine depending on flagfile
|
# run shutdown routine
|
||||||
/etc/init.d/rcK
|
/etc/init.d/rcK
|
@@ -47,7 +47,6 @@
|
|||||||
#define NEUTRINO_APP_START_SCRIPT "neutrino.start"
|
#define NEUTRINO_APP_START_SCRIPT "neutrino.start"
|
||||||
|
|
||||||
// control scripts w/o counterparts in /var
|
// control scripts w/o counterparts in /var
|
||||||
#define NEUTRINO_ENTER_FLASH_SCRIPT CONTROLDIR "/flash.start"
|
|
||||||
#define NEUTRINO_CONF_MIGRATION_SCRIPT CONTROLDIR "/migration.sh"
|
#define NEUTRINO_CONF_MIGRATION_SCRIPT CONTROLDIR "/migration.sh"
|
||||||
|
|
||||||
#define COVERDIR_TMP "/tmp/.cover"
|
#define COVERDIR_TMP "/tmp/.cover"
|
||||||
|
@@ -5690,7 +5690,9 @@ void stop_daemons(bool stopall, bool for_flash)
|
|||||||
if (!backup_flash_sh.empty())
|
if (!backup_flash_sh.empty())
|
||||||
system(backup_flash_sh.c_str()); //don't fork
|
system(backup_flash_sh.c_str()); //don't fork
|
||||||
#endif
|
#endif
|
||||||
my_system(NEUTRINO_ENTER_FLASH_SCRIPT);
|
std::string start_flash_sh = find_executable("start_flash.sh");
|
||||||
|
if (!start_flash_sh.empty())
|
||||||
|
my_system(start_flash_sh.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
InfoClock->enableInfoClock(false);
|
InfoClock->enableInfoClock(false);
|
||||||
|
Reference in New Issue
Block a user