blob: 5ec6ff4287f08358b7ccdabb91904a5bcf504067 (
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
|
#!/bin/sh -e
#declare varibles
GOALSTRING="element exclude keyword = ffdec_"
# create symbolic link
if [ ! -e home ]; then
ln -s opt/home home
else
cp -rf home/* opt/home/.
rm -rf home
ln -s opt/home home
fi
if [ ! -e root ]; then
ln -s opt/home/root root
else
rm -rf root
ln -s opt/home/root root
fi
#modify ini file.
if [ -e usr/etc/mmfw_player.ini ]; then
FINDSTRING=`cat usr/etc/mmfw_player.ini | grep "element exclude keyword ="`
sed s/"${FINDSTRING}"/"${GOALSTRING}"/ usr/etc/mmfw_player.ini > usr/etc/mmfw_player.ini_changed
mv usr/etc/mmfw_player.ini_changed usr/etc/mmfw_player.ini
fi
#apply fstab file
mv etc/fstab_emul etc/fstab
#change file owner and group of home directories.
chown -R 5000:5000 $BASE/opt/home/app
chown -R 5100:5100 $BASE/opt/home/developer
|