+
+# 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
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 ""
/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
+
+++ /dev/null
-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
+++ /dev/null
-# Prelink can reduce boot time
-if [ -x /usr/sbin/prelink ]; then
- /usr/sbin/prelink -aRqm
-fi
+++ /dev/null
-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
+++ /dev/null
-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
- ivi-2.0-symlinks
- symlink-root
- boot-into-ui
+ - usb-networking
+
+