From: SeokYeon Hwang Date: Wed, 24 Jun 2015 06:08:21 +0000 (+0900) Subject: prerun: cleaned-up messages X-Git-Tag: submit/tizen/20151125.063743~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a16f09a065514c59c7da57f87d7d5567a93be85;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git prerun: cleaned-up messages Change-Id: I7f814ae874cbd8a60a432febf851007d083a91b8 Signed-off-by: SeokYeon Hwang (cherry picked from commit e252eb0c37036e7eab70062496207ca3c4fa8136) --- diff --git a/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh b/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh index 519f81f..3350267 100644 --- a/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh +++ b/filesystem/etc/emulator/prerun.d/generate-emulator-env.sh @@ -8,7 +8,7 @@ CMDLINE=/proc/cmdline EMULATOR_ENV=$(readlink -f $NEW_ROOT/etc/profile.d/emulator_env.sh) ##### network proxy environments -echo -e "[${_G} network proxy setting ${C_}]" +echo -e "*** Generating network proxy env" if [ -f $EMULATOR_ENV ]; then rm -f $EMULATOR_ENV @@ -33,9 +33,12 @@ do __PROXY=`sed "s/^.*${PROXY}=\([^, ]*\).*$/\1/g" $CMDLINE` if [ "x${__PROXY}" = "x" ] || ! grep -q ${PROXY} $CMDLINE ; then echo "export ${PROXY}=" >> $EMULATOR_ENV + echo -e "- ${PROXY}=" else echo "export ${PROXY}=${URL}://${__PROXY}/" >> $EMULATOR_ENV + echo -e "- ${PROXY}=${URL}://${__PROXY}/" fi fi done echo "export no_proxy=localhost,127.0.0.1/8,10.0.0.0/1" >> $EMULATOR_ENV +echo -e "- no_proxy=localhost,127.0.0.1/8,10.0.0.0/1" diff --git a/filesystem/etc/emulator/prerun.d/model-config.sh b/filesystem/etc/emulator/prerun.d/model-config.sh deleted file mode 100644 index 5235d3c..0000000 --- a/filesystem/etc/emulator/prerun.d/model-config.sh +++ /dev/null @@ -1,61 +0,0 @@ -if [ ! -z $1 ]; then - NEW_ROOT=$1 -else - NEW_ROOT= -fi - - -CMDLINE=/proc/cmdline -XML=$(readlink -f $NEW_ROOT/etc/config/model-config.xml) - -echo -e "[${_G} model config setting ${C_}]" - -# display resolution -if grep -q "video=" $CMDLINE ; then - echo -e "[${_G} modify the resolution value of platform features: ${C_}]" - - VIDEO=`sed s/.*video=// $CMDLINE | cut -d ' ' -f1` - FORMAT=`echo $VIDEO | cut -d ':' -f2 | cut -d ',' -f2` - RESOLUTION=`echo $FORMAT | cut -d '-' -f1` - WIDTH=`echo $RESOLUTION | cut -d 'x' -f1` - HEIGHT=`echo $RESOLUTION | cut -d 'x' -f2` - - TR_NUM=`echo $WIDTH$HEIGHT | tr -d '[0-9]'` - if [ "$TR_NUM" != "" ] ; then - echo "non-integer argument" - else - WIDTH_KEY="tizen.org\/feature\/screen.width\" type=\"int\"" - sed -i s/"$WIDTH_KEY".*\"$WIDTH"\"$HEIGHT"\true\"$SCREEN_DPI"\"$WIDTH"\"$HEIGHT"\true\"$SCREEN_DPI"\