#!/usr/bin/env sh
cd $HOME/.mozilla/firefox
BDIR=`echo *.default`
echo "Find dir: $BDIR"
if [ -d $BDIR ]; then
cd $BDIR/searchplugins
echo "# Firefox plugin file
#
# Wikipedia search
# by Ian Jackson for Ubuntu copying code
# by Fergus McKenzie-Kay copying code
# by Spencer Wysinger <http://wysinger.com/>
# ported to Ubuntu by Alex Converse
# Translated by Leonardo Juszkiewicz <x.cyclop@yahoo.com>
<search
name=\"Wikipedia Español\"
description=\"Buscar un tema en la Wikipedia\"
action=\"http://es.wikipedia.org/wiki/Special:Search\"
searchForm=\"http://es.wikipedia.org/\"
queryEncoding=\"utf-8\"
queryCharset=\"utf-8\"
method=\"GET\"
>
<input name=\"search\" user=\"\">
<input name=\"go\" value=\"Go\">
</search>" > wikipediaes.src
wget http://img411.imageshack.us/img411/9058/wikipediara8.gif
mv wikipediara8.gif wikipediaes.gif
printf "\e[32m\e[1mListo\n\e[0m"
fi