#!/bin/sh

export OPERA_MULTITAP=NO
export OPERA_SHOW_STATUSWINDOW=NO 
export OPERA_FB_BORDERWIDTH=0
export OPERA_SHOW_IMEWINDOW=YES
export OPERA_SHOW_NAVIGATIONWINDOW=NO
export OPERA_SHOW_MOUSEPOINTER=NO
export OPERA_ESC_EXIT=YES
export FREETYPE_FONT_SET=YES
export OPERA_ROOT=/var/swap/titanplugins/hbbtv/opera
export OPERA_FB_SIZE=1280x720
export OPERA_DIR="${OPERA_ROOT}/opera_dir"
export OPERA_HOME="${OPERA_ROOT}"/opera_home/
export OPERA_FONTS="${OPERA_ROOT}"/fonts
export OPERA_WIDGETS="${OPERA_ROOT}"/widgets
export LD_LIBRARY_PATH=/var/swap/titanplugins/hbbtv/opera:${LD_LIBRARY_PATH}

STARTPAGE="${OPERA_ROOT}"/directfb-ui/startpage.html
#STARTPAGE="http://itv.mit-xperts.com/zdfmediathek/index.php"
STARTPAGE="http://hbbtv.ardmediathek.de/hbbtv-ard/mediathek/"
STARTPAGE="http://itv.mit-xperts.com/hbbtvtest/index.php"
STARTPAGE="http://hbbtv.clipfish.de/start.php"
#STARTPAGE="tvportal.humaxdigital.com"
EXPATH=${OPERA_ROOT}/bin EXBIN=opera EXEC_FLAG="-u ${STARTPAGE} --dfb:mode=1280x720,no-debug,no-vt,no-vt-switch $@"

#cp ${OPERA_ROOT}/portal_userjs/user_potral.js ${OPERA_ROOT}/opera_dir/userjs/user.js
cp ${OPERA_ROOT}/portal_userjs/input_opera.ini ${OPERA_ROOT}/opera_home/input.ini
echo 0 > /proc/cpu/alignment 
exec  ${EXPATH}/${EXBIN} ${EXEC_FLAG}
echo 1 > /proc/cpu/alignment 

exit 1

