#!/bin/sh #/sbin/ldconfig -f /opt/etc/ld.so.conf -C /opt/etc/ld.so.cache /sbin/ldconfig # Check 3-touchkey firmware /lib/firmware/firmware_upgrade_touchkey.sh #Check machine is P1P2 MACHINE=`grep Hardware /proc/cpuinfo|cut -d ":" -f 2|tr -d " "` if [ $MACHINE == "P1P2" ];then ln -s /opt/etc/X11/xorg.conf.d.p1p2 /opt/etc/X11/xorg.conf.d # motor sensor has not been implemented yet rm -f /usr/driver/tspdrv.ko else ln -s /opt/etc/X11/xorg.conf.d.default /opt/etc/X11/xorg.conf.d fi # Copy alsa scenario file for sound temporary if [ ! -e /opt/etc/sound ]; then mkdir -p /opt/etc/sound fi if [ $MACHINE == "F1" ]; then cp -r /usr/share/ascenario/mc1n2 /opt/etc/sound/default cp -r /usr/share/ascenario/mc1n2.conf /opt/etc/sound/default.conf else cp -r /usr/share/ascenario/wm8994 /opt/etc/sound/default cp -r /usr/share/ascenario/wm8994.conf /opt/etc/sound/default.conf fi chown root:soundpath /opt/etc/sound/default.conf chown -R root:soundpath /opt/etc/sound/default # Generate new wifi mac address /usr/sbin/wlan_prov if [ -e /opt/system/csc/.factoryreset ]; then rm -f /opt/system/csc/.factoryreset fi sync