+++ /dev/null
-# 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
-
-###############################
-
+++ /dev/null
-# save a little bit of space at least...
-rm -f /boot/initrd*
--- /dev/null
+# console-switching.post
+# 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
--- /dev/null
+# copy-initd.post
+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
--- /dev/null
+# ims-service.post
+# 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
+
+++ /dev/null
-sed -i s/ENGINE=gl/ENGINE=fb/ /etc/profile.d/menu-screen.sh
+# invisi-cursor.post
# Config workaround for TIVI-515: Invisible cursor.
-
cd /opt/home/app/.e/e/config/samsung/
eet -d e.cfg config > a.config
sed -ie s/'value "cursor_size" int: 1'/'value "cursor_size" int: 24'/ a.config
+++ /dev/null
-
-# 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
-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 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 ""
-
-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
-
-
-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
-
-
-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
-
-###############################
-
-
+++ /dev/null
-if [[ (-h /root) ]]; then
- rm /root
- mkdir /root
-fi
--- /dev/null
+# keygen.post
+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 ""
--- /dev/null
+# links-n-tweaks.post
+echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
+
+# to make udev happy
+ln -sf /bin/busybox /sbin/blkid
+
+# modprobe fuse for sqlfs-mount
+/bin/sed -i "3i /sbin/modprobe fuse || :" /etc/rc.d/init.d/sqlfs-mount
+
+# kill some docs and man pages
+rm -rf /usr/share/man
+rm -rf /usr/share/doc
+
+ldconfig
+
+mkdir -p /opt/var/lib/dbus
+if [ -e /usr/bin/build-backup-data.sh ]; then
+ /usr/bin/build-backup-data.sh
+fi
+
+# set some opt/ links
+rm -rf /etc/localtime
+ln -sf /opt/etc/localtime /etc/localtime
+
+ln -s /opt/etc/X11/xkb /usr/share/X11
+
+ln -sf /etc/info.ini /opt/etc/info.ini
+ln -sf /etc/info.ini /usr/etc/info.ini
+
+rm -fr /root
+ln -s /opt/home/app/ /root
+
+mkdir -p /opt/home/app
+chown app: /opt/home/app
+mkdir -p /home
+ln -s /opt/home/app /home/app
+
--- /dev/null
+# menu-screen.post
+pkg_initdb
+
+INITDB=1 ail_initdb
+/opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
+
+sed -i s/ENGINE=gl/ENGINE=fb/ /etc/profile.d/menu-screen.sh
--- /dev/null
+# misc-hacks.post
+# 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
+
--- /dev/null
+# Without this line the rpm doesn't get the architecture right.
+# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
+> /etc/rpm/platform
+# rpm.post
rm -f /var/lib/rpm/__db*
-rpm --rebuilddb
+mv -f /var/lib/rpm /opt/var/lib/
+ln -sf /opt/var/lib/rpm /var/lib/rpm
+rpmdb --rebuilddb
+++ /dev/null
-mkdir /opt/home/root
-ln -sf /opt/home/root /root
+++ /dev/null
-
-cp -a /lib/systemd/system/* /usr/lib/systemd/system
+# usb-networking.post
# 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
chmod 755 /etc/rc.d/rc3.d/S01usbnet.sh
ln -sf /etc/rc.d/init.d/ssh /etc/rc.d/rc3.d/S90ssh
+
--- /dev/null
+# user-bin-press.post
+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
+++ /dev/null
-mkdir -p /opt/home/app
-chown app: /opt/home/app
-mkdir -p /home
-ln -s /opt/home/app /home/app
-ln -sf /opt/home/root /root
- vconf
- tizen-coreutils
PostScripts:
- - ivi-2.0-symlinks
- - symlink-root
- - boot-into-ui
+ - console-switching
+ - copy-initd
+ - platform-fix
+ - menu-screen
+ - ims-service
+ - user-bin-press
+ - rpm
- usb-networking
- - cursor-config
+ - misc-hacks
+ - links-n-tweaks
+ - invisi-cursor