summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorKibum Kim <kb0929.kim@samsung.com>2012-02-27 21:15:50 +0900
committerKibum Kim <kb0929.kim@samsung.com>2012-02-27 21:15:50 +0900
commit3d35d1a52e6f265dfa3e6cce841be13535655163 (patch)
tree7c103132ea9acbd102f33103c3aace106f4a3c8e /debian/postinst
downloaddefault-files-emulator-3d35d1a52e6f265dfa3e6cce841be13535655163.tar.gz
default-files-emulator-3d35d1a52e6f265dfa3e6cce841be13535655163.tar.bz2
default-files-emulator-3d35d1a52e6f265dfa3e6cce841be13535655163.zip
tizen beta release
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100755
index 0000000..6956eb9
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,33 @@
+#!/bin/sh -e
+
+#declare varibles
+GOALSTRING="element exclude keyword = ffdec_h264,ffdec_mpeg4,ffdec_h263,ffenc_mpeg4,ffenc_h263"
+
+# 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 opt/etc/mmfw_player.ini ]; then
+ FINDSTRING=`cat opt/etc/mmfw_player.ini | grep "element exclude keyword ="`
+ sed s/"${FINDSTRING}"/"${GOALSTRING}"/ opt/etc/mmfw_player.ini > opt/etc/mmfw_player.ini_changed
+ mv opt/etc/mmfw_player.ini_changed opt/etc/mmfw_player.ini
+ rm opt/etc/mmfw_player.ini_emul
+else
+ mv opt/etc/mmfw_player.ini_emul opt/etc/mmfw_player.ini
+fi
+
+#apply fstab file
+mv etc/fstab_emul etc/fstab