addFritzLoadMenuButton(){
if [ -d $menuDir ];then
menuClass='LMenuitemTop'
for file in `grep -l '<li class="LMenubottom">' $menuDir/*`; do
name="${file##*/}"
dest="${file##*/}"
sed "s,\\(<li class=\"LMenubottom\">[^<]*</li>\\),<li class=\"$menuClass\"><img src=\"<? echo '\\\$var:pfeil' ?>\"><a href=\"/cgi-bin/fritzload/gui_download.cgi\" target=\"_top\"> Fritz!Load</a></li>\1," $file >$tmpwww/$name
chmod 0777 $tmpwww/$name
mount -o bind $tmpwww/$name $file
done
fi
if [ $installLoginButton = 1 ];then
if [ -f /usr/www/$OEM/html/login.html ];then
menuClass='LMenuitemTop'
if [ "$addOn" = lcr ];then
sed -e "s,\\(.*\\)\\(<li class=\"LMenubottom\">.*\\),\\1<li class=\"$menuClass\"><img src=\"/html/de/images/pfeil_mini.gif\"><a href=\"/cgi-bin/fritzload/gui_download.cgi\" target=\"_top\"> Fritz!Load</a></li>\\2," /usr/www/$OEM/html/login.html >$tmpwww/login.html
else
sed -e "s,\\(<td id=\"Menuspalte\">\\),\\1<div id=\"menucontent\"><ul class=\"LMenu\"><li class=\"$menuClass\" style=\"margin-top:174px\"><img src=\"/html/de/images/pfeil_mini.gif\"><a href=\"/cgi-bin/fritzload/gui_download.cgi\" target=\"_top\"> Fritz!Load</a></li><li class=\"LMenubottom\">\\ </li></ul></div>," \
/usr/www/$OEM/html/login.html \
| sed 's,\(<style\),<style type="text/css"><? include ../html/\$var:lang/css/fb2.css ?></style>\1,' \
>$tmpwww/login.html
fi
chmod 0777 $tmpwww/login.html
mount -o bind $tmpwww/login.html /usr/www/$OEM/html/login.html
if [ -f /usr/www/$OEM/html/de/login_de.html ];then
cp $tmpwww/login.html $tmpwww/login_de.html
mount -o bind $tmpwww/login_de.html /usr/www/$OEM/html/de/login_de.html
fi
fi
fi
}