summaryrefslogtreecommitdiff
path: root/www/opera6/files/opera.sh
blob: b5e8625834d8aed9ec08a49bc704421068a216a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
OPERADIR=$HOME/.opera

mkdir -p $OPERADIR || exit 1
for FILE in $OPERADIR/opera6.ini $OPERADIR/opera5.ini $OPERADIR/opera.ini
do
 if [ -e ${FILE} ]
 then
  if grep -q '^Synchronous DNS Lookup=0$' ${FILE}
  then
   cp -p ${FILE} ${FILE}.patch
   sed -e 's#^\(Synchronous DNS Lookup\)=0$#\1=1#' ${FILE}.patch >${FILE}
   rm -f ${FILE}.patch
  fi
 else
  echo >${FILE} "[Performance]"
  echo >>${FILE} "Synchronous DNS Lookup=1"
 fi
done

exec @EMULDIR@/bin/bash /usr/bin/opera "$@"