mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
update: add TARGET_PREFIX define to backup/install calls
This commit is contained in:
@@ -642,7 +642,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
ofgwrite will copy this tarball to new rootfs.
|
ofgwrite will copy this tarball to new rootfs.
|
||||||
It's untared at first start of new image.
|
It's untared at first start of new image.
|
||||||
*/
|
*/
|
||||||
my_system(3, "/bin/backup.sh", "/tmp", "backup_flash.tar.gz");
|
my_system(3, TARGET_PREFIX "/bin/backup.sh", "/tmp", "backup_flash.tar.gz");
|
||||||
hintBox.hide();
|
hintBox.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -727,7 +727,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
#endif
|
#endif
|
||||||
else // not image, install
|
else // not image, install
|
||||||
{
|
{
|
||||||
const char install_sh[] = "/bin/install.sh";
|
const char install_sh[] = TARGET_PREFIX "/bin/install.sh";
|
||||||
dprintf(DEBUG_NORMAL, "[update] calling %s %s %s\n",install_sh, g_settings.update_dir.c_str(), filename.c_str() );
|
dprintf(DEBUG_NORMAL, "[update] calling %s %s %s\n",install_sh, g_settings.update_dir.c_str(), filename.c_str() );
|
||||||
#ifndef DRYRUN
|
#ifndef DRYRUN
|
||||||
my_system(3, install_sh, g_settings.update_dir.c_str(), filename.c_str());
|
my_system(3, install_sh, g_settings.update_dir.c_str(), filename.c_str());
|
||||||
|
Reference in New Issue
Block a user