Initial code release
[adaptation/system-plugin-ia-generic.git] / etc / rc.d / rc.emul
1 #!/bin/sh
2
3 # Color set for ANSI TERM
4 _R='\033[0;31;1m'       #Red
5 _G='\033[0;32;1m'       #Green
6 _Y='\033[0;33;1m'       #Yellow
7 C_='\033[0m'            #Color off
8
9 echo -e "[${_G}rc.emul : script start ${C_}]"
10
11 echo -e "[${_G}chmod +x /opt/media for various apps ${C_}]"
12 chmod -R 777 /opt/media
13
14 echo -e "[${_G}make symbolic link ${C_}]"
15 ln -sf /mnt/mmc /sdcard
16 ln -sf /proc/mounts /etc/mtab
17
18 echo -e "[${_G}Setting power manager state value ${C_}]"
19 /usr/bin/vconftool set -t int memory/pwrmgr/state 1
20
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
24
25 echo -e "[${_G}Mount SD card ${C_}]"
26 mount /dev/mmcblk0 /mnt/mmc
27
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
33 fi 
34
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"
38
39 echo -e "[${_G}For menu_screen booting..${C_}]" 
40 /usr/bin/vconftool set -t int memory/startapps/sequence 1
41
42 echo -e "[${_G}rc.emul : script end ${C_}]"