From: giwoong.kim Date: Wed, 26 Jun 2013 07:55:15 +0000 (+0900) Subject: added number checking routine to model-config.sh X-Git-Tag: submit/tizen_common/20140529.181337~11^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21f3e9d1518e925ead2c977ea75a61e05ec10446;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git added number checking routine to model-config.sh Change-Id: Idfd450d8df534adf6f65f0f92375c552ddaa76af Signed-off-by: GiWoong Kim --- diff --git a/filesystem/etc/emulator/model-config.sh b/filesystem/etc/emulator/model-config.sh index 156c7b3..f6f617d 100755 --- a/filesystem/etc/emulator/model-config.sh +++ b/filesystem/etc/emulator/model-config.sh @@ -1,43 +1,48 @@ #!/bin/sh -#if grep "platform_feature=3btn" /proc/cmdline ; then -# echo -e "[${_G} turn on the input.keys feature ${C_}]" -# sed -i 's/name=\"tizen.org\/feature\/input.keys.back\" type=\"bool\">false/name=\"tizen.org\/feature\/input.keys.back\" type=\"bool\">true/g' ./model-config.xml -#else -# echo -e "[${_G} turn off the input.keys feature ${C_}]" -# sed -i 's/name=\"tizen.org\/feature\/input.keys.back\" type=\"bool\">true/name=\"tizen.org\/feature\/input.keys.back\" type=\"bool\">false/g' ./model-config.xml -#fi - CMDLINE=/proc/cmdline XML=/etc/config/model-config.xml echo -e "[${_G} model config setting ${C_}]" +# display resolution if grep --silent "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` - RESOLUTION=`echo $FORMAT | cut -d'-' -f1` - WIDTH=`echo $RESOLUTION | cut -d'x' -f1` - HEIGHT=`echo $RESOLUTION | cut -d'x' -f2` - - WIDTH_KEY="tizen.org\/feature\/screen.width\" type=\"int\"" - sed -i s/"$WIDTH_KEY".*\"$WIDTH"\"$HEIGHT"\"$WIDTH"\"$HEIGHT"\"$SCREEN_DPI"\"$SCREEN_DPI"\