From 9fce625124e97e268aaef73fd70f90e219c90f95 Mon Sep 17 00:00:00 2001 From: max_10 Date: Sun, 4 Feb 2018 20:33:04 +0100 Subject: [PATCH] update: add TARGET_PREFIX define to backup/install calls Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f5a80ed1d52ac0f1139e79ce2fb7340aeac94756 Author: max_10 Date: 2018-02-04 (Sun, 04 Feb 2018) --- src/gui/update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 4de35477e..fb775a2ef 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -644,7 +644,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey) ofgwrite will copy this tarball to new rootfs. 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(); } @@ -729,7 +729,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey) #endif 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() ); #ifndef DRYRUN my_system(3, install_sh, g_settings.update_dir.c_str(), filename.c_str());