3 # Color set for ANSI TERM
5 _G='\033[0;32;1m' #Green
6 _Y='\033[0;33;1m' #Yellow
7 C_='\033[0m' #Color off
9 echo -e "[${_G}rc.emul : script start ${C_}]"
11 echo -e "[${_G}chmod +x /opt/media for various apps ${C_}]"
12 chmod -R 777 /opt/media
14 echo -e "[${_G}make symbolic link ${C_}]"
15 ln -sf /mnt/mmc /sdcard
16 ln -sf /proc/mounts /etc/mtab
18 echo -e "[${_G}Setting power manager state value ${C_}]"
19 /usr/bin/vconftool set -t int memory/pwrmgr/state 1
21 echo -e "[${_G}Initialize battery level ${C_}]"
22 /usr/bin/vconftool set -t int memory/Battery/Level 5
23 /usr/bin/vconftool set -t int memory/Battery/Status/Low 4
25 echo -e "[${_G}Mount SD card ${C_}]"
26 mount /dev/mmcblk0 /mnt/mmc
28 MMC_MOUNT=`/bin/mount | grep mmc`
29 if [ -n "$MMC_MOUNT" ]; then
30 echo -e "[${_G}MMC storage detected ${C_}]"
31 /usr/bin/vconftool set -t int memory/Device/Mmc 1
32 /usr/bin/vconftool set -t int memory/filemanager/Mmc 2
35 echo -e "[${_G}Initialize display setting value${C_}]"
36 /usr/bin/vconftool set -t int db/setting/Brightness "24"
37 /usr/bin/vconftool set -t int db/MainLCD/Backlight/Normal "600"
39 echo -e "[${_G}For menu_screen booting..${C_}]"
40 /usr/bin/vconftool set -t int memory/startapps/sequence 1
42 echo -e "[${_G}rc.emul : script end ${C_}]"