Cleanup accepted/2.0/20130305.001654 submit/2.0/20130305.004537
authorGraydon, Tracy <tracy.graydon@intel.com>
Tue, 5 Mar 2013 00:45:21 +0000 (16:45 -0800)
committerGraydon, Tracy <tracy.graydon@intel.com>
Tue, 5 Mar 2013 00:45:21 +0000 (16:45 -0800)
custom/scripts/ivi-2.0-symlinks.post
custom/scripts/ivi-x11.post [deleted file]
custom/scripts/prelink.post [deleted file]
custom/scripts/slp-common.post [deleted file]
custom/scripts/slp-common.post.bak [deleted file]
ivi/ivi-2.0.yaml

index 922b887..72f899f 100755 (executable)
@@ -1,11 +1,20 @@
+
+# customize the slp-common post script  
 echo 'kickstart post script start'
 
+# to make udev happy
+ln -sf /bin/busybox /sbin/blkid
+
+
 # inittab hack to fix console - UI switching
 sed -ri '/^1\:2345\:respawn/d' /etc/inittab
 echo '' >> /etc/inittab 
 echo '1:12345:respawn:/sbin/mingetty tty3' >> /etc/inittab  
 echo '2:12345:respawn:/sbin/mingetty tty4' >> /etc/inittab 
 
+# modprobe fuse for sqlfs-mount
+/bin/sed -i "3i /sbin/modprobe fuse || :" /etc/rc.d/init.d/sqlfs-mount 
+
 
 if [ -d /etc/init.d ]; then
     cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
@@ -16,6 +25,10 @@ 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 doesn't get the architecture right.
+# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
+> /etc/rpm/platform
+
 ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
@@ -68,3 +81,39 @@ if [ -e /usr/bin/build-backup-data.sh ]; then
            /usr/bin/build-backup-data.sh
 fi
 
+
+sed -i s/ENGINE=gl/ENGINE=fb/ /etc/profile.d/menu-screen.sh
+
+# enable USB networking with IP address 192.168.1.1 by default
+cat >/etc/rc.d/rc3.d/S01usbnet.sh <<END
+#!/bin/sh
+echo 0 > /sys/class/android_usb/android0/enable
+echo adb,rndis > /sys/class/android_usb/android0/functions
+echo 1 > /sys/class/android_usb/android0/enable
+ifconfig rndis0 192.168.100.1
+END
+chmod 755 /etc/rc.d/rc3.d/S01usbnet.sh
+
+ln -sf /etc/rc.d/init.d/ssh /etc/rc.d/rc3.d/S90ssh
+
+mkdir /opt/home/root
+ln -sf /opt/home/root /root
+
+# this file should be deleted after elegant fix merged
+############################### hacks to get
+# usbnet, udev, ssh, and other stuff
+cat > /etc/rc.d/rc3.d/S01debug << EOF
+
+# udev
+/sbin/udevd --daemon
+/sbin/udevadm trigger
+
+EOF
+
+chmod +x /etc/rc.d/rc3.d/S01debug
+
+###############################
+
+
+%end
+
diff --git a/custom/scripts/ivi-x11.post b/custom/scripts/ivi-x11.post
deleted file mode 100755 (executable)
index 63d1d3d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-if [[ (! -d /opt/etc/X11/xorg.conf.d) && (! -d /etc/X11/xorg.conf.d) ]]; then 
-       mkdir -p /opt/etc/X11/xorg.conf.d; 
-       ln -s /opt/etc/X11/xorg.conf.d /etc/X11; 
-fi
diff --git a/custom/scripts/prelink.post b/custom/scripts/prelink.post
deleted file mode 100755 (executable)
index 527548c..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# Prelink can reduce boot time
-if [ -x /usr/sbin/prelink ]; then
-    /usr/sbin/prelink -aRqm
-fi
diff --git a/custom/scripts/slp-common.post b/custom/scripts/slp-common.post
deleted file mode 100755 (executable)
index c4fa855..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-echo 'kickstart post script start'
-if [ -d /etc/init.d ]; then
-    cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
-fi
-rm -rf /etc/init.d*
-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.
-# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
-> /etc/rpm/platform
-
-ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
-ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
-ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
-
-pkg_initdb
-
-
-ln -s /opt/etc/X11/xkb /usr/share/X11
-
-echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
-
-rm -rf /usr/share/man
-rm -rf /usr/share/doc
-
-ldconfig
-
-mkdir -p /opt/var/lib/dbus
-
-rm -f /var/lib/rpm/__db*
-mv -f /var/lib/rpm /opt/var/lib/ 
-ln -sf /opt/var/lib/rpm /var/lib/rpm
-rpmdb --rebuilddb
-
-if [ -e /usr/bin/build-backup-data.sh ]; then
-           /usr/bin/build-backup-data.sh
-fi
diff --git a/custom/scripts/slp-common.post.bak b/custom/scripts/slp-common.post.bak
deleted file mode 100755 (executable)
index 79b485d..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-echo 'kickstart post script start'
-if [ -d /etc/init.d ]; then
-    cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
-fi
-rm -rf /etc/init.d*
-ln -sf /etc/rc.d/init.d /etc/init.d
-
-rm -rf /etc/localtime  
-ln -sf /opt/etc/localtime /etc/localtime  
-#rm -rf /usr/share/zoneinfo  
-#ln -sf /opt/share/zoneinfo /usr/share/zoneinfo 
-
-# Without this line the rpm don't get the architecture right.
-# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
-> /etc/rpm/platform
-
-ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
-ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
-ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
-
-pkg_initdb
-
-INITDB=1 ail_initdb
-/opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
-
-# ims-service domain setting
-RESULT=`grep "192.168.0.163 config.45001.rcse" /etc/hosts`  
-if [ -z "$RESULT" ]; then  
-    echo "Set domain for auto configuration"  
-    echo "192.168.0.163 config.45001.rcse" >> /etc/hosts  
-else  
-    echo "Already setted domain for test auto configuration"  
-fi  
-# ims-service domain setting
-
-cat > /usr/bin/press << EOF
-#!/bin/sh
-
-JUNK="SLP"
-
-[ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1"
-
-echo "Press return key to stop scripts"
-read -t \$TIMEOUT JUNK
-exit \$?
-EOF
-chmod +x /usr/bin/press
-
-ln -s /opt/etc/X11/xkb /usr/share/X11
-
-echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
-
-rm -rf /usr/share/man
-rm -rf /usr/share/doc
-
-ldconfig
-
-mkdir -p /opt/var/lib/dbus
-
-rm -f /var/lib/rpm/__db*
-mv -f /var/lib/rpm /opt/var/lib/ 
-ln -sf /opt/var/lib/rpm /var/lib/rpm
-rpmdb --rebuilddb
-
-if [ -e /usr/bin/build-backup-data.sh ]; then
-           /usr/bin/build-backup-data.sh
-fi
index c1ba409..2053626 100755 (executable)
@@ -42,3 +42,6 @@ PostScripts:
     - ivi-2.0-symlinks
     - symlink-root
     - boot-into-ui
+    - usb-networking
+
+