diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:07 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:07 +0900 |
commit | 879783df803a387a0e742fdf1b9ec7496035b3ed (patch) | |
tree | 46b2549125f324a18b7ce7ad49a4a3e4d221992f /etc/rc.d/rc.firstboot | |
download | system-plugin-slp-879783df803a387a0e742fdf1b9ec7496035b3ed.tar.gz system-plugin-slp-879783df803a387a0e742fdf1b9ec7496035b3ed.tar.bz2 system-plugin-slp-879783df803a387a0e742fdf1b9ec7496035b3ed.zip |
Initialize Tizen 2.3submit/tizen_2.3/20140531.1123462.3a_releasetizen_2.3
Diffstat (limited to 'etc/rc.d/rc.firstboot')
-rwxr-xr-x | etc/rc.d/rc.firstboot | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/rc.d/rc.firstboot b/etc/rc.d/rc.firstboot new file mode 100755 index 0000000..6c7edc2 --- /dev/null +++ b/etc/rc.d/rc.firstboot @@ -0,0 +1,26 @@ +#!/bin/sh + +#/sbin/ldconfig -f /opt/etc/ld.so.conf -C /opt/etc/ld.so.cache +/sbin/ldconfig + +# for /etc/.info/system.info +/bin/sysinfo + +#Check machine is SLP7_C210 +MACHINE=`grep Hardware /proc/cpuinfo|cut -d ":" -f 2|tr -d " "` +if [ $MACHINE == "SLP7_C210" ];then + ln -s /opt/etc/X11/xorg.conf.d.slp7 /opt/etc/X11/xorg.conf.d +else + #Check machine is SLP10_C210 + if [ $MACHINE == "SLP10_C210" ];then + ln -s /opt/etc/X11/xorg.conf.d.slp10 /opt/etc/X11/xorg.conf.d + else + ln -s /opt/etc/X11/xorg.conf.d.default /opt/etc/X11/xorg.conf.d + fi +fi + + +if [ -e /opt/system/csc/.factoryreset ]; then + rm -f /opt/system/csc/.factoryreset +fi +sync |