From 17aea2c21f701de5885a422c51933a65fc2d0539 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Tue, 30 Jun 2015 10:25:25 +0900 Subject: [PATCH] prerun: did not use "busybox readlink" "busybox readlink -f" can not identify absolute path for nonexistent file. So, we do not use "busybox readlink". It is safe now since no symbolic links are used in files path that files are used in prerun script. Change-Id: Ifae058b490a1ebee9532f89a53eebf43e1107dd7 Signed-off-by: SeokYeon Hwang (cherry picked from commit 3a71b1b13da6df0f63faaa9a654d20ea15134786) --- filesystem/etc/emulator/prerun.d/generate-emulator-env.sh | 2 +- filesystem/etc/emulator/prerun.d/set-model-config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh b/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh index 3350267..c26f3e7 100644 --- a/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh +++ b/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh @@ -5,7 +5,7 @@ else fi CMDLINE=/proc/cmdline -EMULATOR_ENV=$(readlink -f $NEW_ROOT/etc/profile.d/emulator_env.sh) +EMULATOR_ENV=$NEW_ROOT/etc/profile.d/emulator_env.sh ##### network proxy environments echo -e "*** Generating network proxy env" diff --git a/filesystem/etc/emulator/prerun.d/set-model-config.sh b/filesystem/etc/emulator/prerun.d/set-model-config.sh index 638259a..c8db2a6 100644 --- a/filesystem/etc/emulator/prerun.d/set-model-config.sh +++ b/filesystem/etc/emulator/prerun.d/set-model-config.sh @@ -6,7 +6,7 @@ fi CMDLINE=/proc/cmdline -XML=$(readlink -f $NEW_ROOT/etc/config/model-config.xml) +XML=$NEW_ROOT/etc/config/model-config.xml echo -e "*** Setting model-config.xml" -- 2.34.1