From: SeokYeon Hwang Date: Tue, 30 Jun 2015 03:00:32 +0000 (+0900) Subject: prerun: skip and inform if there is not model-config.sh X-Git-Tag: submit/tizen/20151125.063743~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7fde4975caa8706f8b76f9db10506050eeb557c;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git prerun: skip and inform if there is not model-config.sh Change-Id: I534c47517ee7f10e3b7d7766d2a22d3e3f6b29f2 Signed-off-by: SeokYeon Hwang (cherry picked from commit 467456149148eb87d716152ec992993ef1266536) --- diff --git a/filesystem/etc/emulator/prerun.d/set-model-config.sh b/filesystem/etc/emulator/prerun.d/set-model-config.sh index c8db2a6..90d12e6 100644 --- a/filesystem/etc/emulator/prerun.d/set-model-config.sh +++ b/filesystem/etc/emulator/prerun.d/set-model-config.sh @@ -10,6 +10,11 @@ XML=$NEW_ROOT/etc/config/model-config.xml echo -e "*** Setting model-config.xml" +if [ ! -f $XML ] ; then + echo -e "- model-config.xml does not exist" + exit +fi + # display resolution if grep -q "video=" $CMDLINE ; then VIDEO=`sed s/.*video=// $CMDLINE | cut -d ' ' -f1` @@ -20,7 +25,7 @@ if grep -q "video=" $CMDLINE ; then TR_NUM=`echo $WIDTH$HEIGHT | tr -d '[0-9]'` if [ "$TR_NUM" != "" ] ; then - echo "non-integer argument" + echo -e "- resolution value is non-integer argument" else WIDTH_KEY="tizen.org\/feature\/screen.width\" type=\"int\"" sed -i s/"$WIDTH_KEY".*\"$WIDTH"\