Fix rc.firstboot script and add a couple files explicitly to spec
[profile/ivi/system-plugin-ia-generic.git] / etc / rc.d / rc.firstboot
index 3ba64b4..fb5882b 100755 (executable)
@@ -4,11 +4,11 @@
 /sbin/ldconfig
 
 # Check 3-touchkey firmware
-/lib/firmware/firmware_upgrade_touchkey.sh
+#/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
+if [ $MACHINE -eq "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             
@@ -21,7 +21,7 @@ if [ ! -e /opt/etc/sound ]; then
         mkdir -p /opt/etc/sound
 fi
 
-if [ $MACHINE == "F1" ]; then                                   
+if [ $MACHINE -eq "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