blob: 19b018741ab74223e000c166b146adaa3b41a815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
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
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
mkdir -p /opt/var/lib/dbus
mkdir -p /var/lib/alsa
#pulseAudio patch
echo "PulseAudio Patch for Pandaboard"
chmod 777 /etc/pulse/*
chmod -R 777 /usr/share/pulseaudio/
cp -arf /etc/pulse_bak/* /etc/pulse/
cp -arf /usr/share/pulseaudio_bak/* /usr/share/pulseaudio/
#patch End
ln -s /opt/etc/X11/xkb /usr/share/X11
echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
mv /usr/include/python2.7/pyconfig.h /usr/pyconfig.h
rm -rf /usr/include/*
mkdir -p /usr/include/python2.7
mv /usr/pyconfig.h /usr/include/python2.7/pyconfig.h
rm -rf /usr/share/man
rm -rf /usr/share/doc
ldconfig
#mkdir -p /opt/var/lib/dbus
#mkdir -p /var/lib/alsa
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
/etc/make_info_file.sh Ref.Device-210 Tizen_Ref.Device-210_`date +%Y%m%d.%H%M`
ln -sf /etc/info.ini /opt/etc/info.ini
ln -sf /etc/info.ini /usr/etc/info.ini
#Moving platform to arch specific posts, from common
echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
# 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
eet -e e.cfg config a.config 1
chown app.app e.cfg
rm a.config
|