TIVI-256: virtual keyboard fix
[profile/ivi/image-configurations.git] / custom / scripts / ivi-2.0-symlinks.post
index 2f311ac..c88784e 100644 (file)
@@ -1,16 +1,20 @@
 # customize the slp-common post script  
 
+echo 'kickstart post script start'
+
 # to make udev happy
 ln -sf /bin/busybox /sbin/blkid
 
 # where in the world is xinitrc?
 ln -sf /etc/X11/xinitrc /usr/etc/X11/xinitrc
 
-# modprobe fuse for sqlfs-mount
-awk 'NR==3{print "/sbin/modprobe fuse || :"}3' /etc/init.d/sqlfs-mount
+# inittab hack to fix console - UI switching
+sed -ri 's/--noclear tty1/tty3/' /etc/inittab
+sed -ri 's/tty2/tty4/' /etc/inittab
 
+# modprobe fuse for sqlfs-mount
+/bin/sed -i "3i /sbin/modprobe fuse || :" /etc/rc.d/init.d/sqlfs-mount 
 
-echo 'kickstart post script start'
 if [ -d /etc/init.d ]; then
     cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
 fi
@@ -20,7 +24,7 @@ ln -sf /etc/rc.d/init.d /etc/init.d
 rm -rf /etc/localtime  
 ln -sf /opt/etc/localtime /etc/localtime  
 
-# Without this line the rpm don't get the architecture right.
+# Without this line the rpm doesn't get the architecture right.
 # echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
 > /etc/rpm/platform
 
@@ -57,6 +61,9 @@ EOF
 chmod +x /usr/bin/press
 
 ln -s /opt/etc/X11/xkb /usr/share/X11
+ln -s /home/app /opt/home/app
+ln -s /home/developer /opt/home/developer
+
 
 echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev