From: SeokYeon Hwang Date: Mon, 26 Jan 2015 07:15:08 +0000 (+0900) Subject: introduced prerun scripts. X-Git-Tag: submit/tizen/20150602.060836~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff58b3c839a627da9d2e894df78fd8b699123e20;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git introduced prerun scripts. This script is executed from initramfs. It is very useful for manipulating some files on rootfs before init. (Configuration files, ...) Change-Id: I31cd697f3415e7903e670aa44c32c700f0f54091 Signed-off-by: SeokYeon Hwang --- diff --git a/filesystem/etc/emulator/model-config.sh b/filesystem/etc/emulator/model-config.sh deleted file mode 100755 index 96a29e1..0000000 --- a/filesystem/etc/emulator/model-config.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -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 | 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"\