UI-console switching
[profile/ivi/image-configurations.git] / custom / scripts / slp-common.post
1 echo 'kickstart post script start'
2 if [ -d /etc/init.d ]; then
3     cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
4 fi
5 rm -rf /etc/init.d*
6 ln -sf /etc/rc.d/init.d /etc/init.d
7
8 rm -rf /etc/localtime  
9 ln -sf /opt/etc/localtime /etc/localtime  
10
11 # Without this line the rpm don't get the architecture right.
12 # echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
13 > /etc/rpm/platform
14
15 ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
16 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
17 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
18
19 pkg_initdb
20
21
22 ln -s /opt/etc/X11/xkb /usr/share/X11
23
24 echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
25
26 rm -rf /usr/share/man
27 rm -rf /usr/share/doc
28
29 ldconfig
30
31 mkdir -p /opt/var/lib/dbus
32
33 rm -f /var/lib/rpm/__db*
34 mv -f /var/lib/rpm /opt/var/lib/ 
35 ln -sf /opt/var/lib/rpm /var/lib/rpm
36 rpmdb --rebuilddb
37
38 if [ -e /usr/bin/build-backup-data.sh ]; then
39            /usr/bin/build-backup-data.sh
40 fi