From: SeokYeon Hwang Date: Tue, 23 Jun 2015 14:05:53 +0000 (+0900) Subject: prerun: modified prerun script X-Git-Tag: submit/tizen/20151125.063743~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=015de2fd80cae032d4625b029561c6f306eb2dbb;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git prerun: modified prerun script Basic binutils are prepared by prerun script. Change-Id: Id55d82c40a83e1ed64a71bacff7fb2ef22d8d768 Signed-off-by: SeokYeon Hwang (cherry picked from commit 98c695698a56f7327553743f475da69aa0740b87) --- diff --git a/filesystem/etc/emulator/prerun b/filesystem/etc/emulator/prerun index c46dfc1..77333f1 100644 --- a/filesystem/etc/emulator/prerun +++ b/filesystem/etc/emulator/prerun @@ -2,6 +2,15 @@ if [ ! -z $1 ]; then NEW_ROOT=$1 + # if NEW_ROOT is passed, it executed by initramfs. + # So, we should prepare some core utils. + /bin/busybox ln -sf /bin/busybox /bin/ln + ln -sf /bin/busybox /bin/sed + ln -sf /bin/busybox /bin/grep + ln -sf /bin/busybox /bin/cut + ln -sf /bin/busybox /bin/tr + ln -sf /bin/busybox /bin/expr + ln -sf /bin/busybox /bin/readlink else NEW_ROOT= fi diff --git a/filesystem/etc/emulator/prerun.d/model-config.sh b/filesystem/etc/emulator/prerun.d/model-config.sh index ebcd392..5235d3c 100644 --- a/filesystem/etc/emulator/prerun.d/model-config.sh +++ b/filesystem/etc/emulator/prerun.d/model-config.sh @@ -1,18 +1,10 @@ if [ ! -z $1 ]; then NEW_ROOT=$1 - # if NEW_ROOT is passed, it executed by initramfs. - # So, we should prepare some core utils. - /bin/busybox ln -sf /bin/busybox /bin/ln - ln -sf /bin/busybox /bin/sed - ln -sf /bin/busybox /bin/grep - ln -sf /bin/busybox /bin/cut - ln -sf /bin/busybox /bin/tr - ln -sf /bin/busybox /bin/expr - ln -sf /bin/busybox /bin/readlink else NEW_ROOT= fi + CMDLINE=/proc/cmdline XML=$(readlink -f $NEW_ROOT/etc/config/model-config.xml)