#!/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