1 # customize the slp-common post script
3 echo 'kickstart post script start'
6 ln -sf /bin/busybox /sbin/blkid
8 # where in the world is xinitrc?
9 ln -sf /etc/X11/xinitrc /usr/etc/X11/xinitrc
11 # inittab hack to fix console - UI switching
12 sed -ri 's/--noclear tty1/tty3/' /etc/inittab
13 sed -ri 's/tty2/tty4/' /etc/inittab
15 # modprobe fuse for sqlfs-mount
16 /bin/sed -i "3i /sbin/modprobe fuse || :" /etc/rc.d/init.d/sqlfs-mount
18 if [ -d /etc/init.d ]; then
19 cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
22 ln -sf /etc/rc.d/init.d /etc/init.d
25 ln -sf /opt/etc/localtime /etc/localtime
27 # Without this line the rpm doesn't get the architecture right.
28 # echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
31 ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
32 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
33 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
38 /opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
40 # ims-service domain setting
41 RESULT=`grep "192.168.0.163 config.45001.rcse" /etc/hosts`
42 if [ -z "$RESULT" ]; then
43 echo "Set domain for auto configuration"
44 echo "192.168.0.163 config.45001.rcse" >> /etc/hosts
46 echo "Already setted domain for test auto configuration"
48 # ims-service domain setting
50 cat > /usr/bin/press << EOF
55 [ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1"
57 echo "Press return key to stop scripts"
58 read -t \$TIMEOUT JUNK
61 chmod +x /usr/bin/press
63 ln -s /opt/etc/X11/xkb /usr/share/X11
65 echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
72 mkdir -p /opt/var/lib/dbus
74 rm -f /var/lib/rpm/__db*
75 mv -f /var/lib/rpm /opt/var/lib/
76 ln -sf /opt/var/lib/rpm /var/lib/rpm
79 if [ -e /usr/bin/build-backup-data.sh ]; then
80 /usr/bin/build-backup-data.sh