From 788fb43445399866ca2f8ca118570aa4d29eca0d Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Thu, 17 Sep 2020 17:29:05 +0900 Subject: [PATCH] Rename pre script to setup script Change-Id: Iaeaaf005a9760fd9c1edb0ae91a6044f2855c041 Signed-off-by: Kichan Kwon --- scripts/upgrade-trigger.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade-trigger.sh b/scripts/upgrade-trigger.sh index 1e7c70b..87c0986 100644 --- a/scripts/upgrade-trigger.sh +++ b/scripts/upgrade-trigger.sh @@ -62,15 +62,15 @@ write_version_info() { echo "OLD_VER=$CVT_VER" > $VERSION_FILE } -run_pre_script() { - PRE_SCRIPT_NAME=pre.sh - PRE_SCRIPT_PATH=$FOTA_DIR/$PRE_SCRIPT_NAME +run_setup_script() { + SETUP_SCRIPT_NAME=setup.sh + SETUP_SCRIPT_PATH=$FOTA_DIR/$SETUP_SCRIPT_NAME - /bin/tar xvfp $DELTA_TAR -C $FOTA_DIR $PRE_SCRIPT_NAME + /bin/tar xvfp $DELTA_TAR -C $FOTA_DIR $SETUP_SCRIPT_NAME - if [ -e $PRE_SCRIPT_PATH ]; then - /bin/sh $PRE_SCRIPT_PATH - rm $PRE_SCRIPT_PATH + if [ -e $SETUP_SCRIPT_PATH ]; then + /bin/sh $SETUP_SCRIPT_PATH + rm $SETUP_SCRIPT_PATH fi } @@ -108,8 +108,8 @@ if [ -e "$IMG_VERIFIER" ]; then fi fi -# Run pre-script if exist -run_pre_script +# Run setup script if exist +run_setup_script # Flash images # - in case of some new image was included -- 2.7.4