#!/bin/sh

if [ -f /etc/dwww/dwww.conf ]
then
	. /etc/dwww/dwww.conf
fi

if [ -z "$DWWW_SERVERNAME" ]
then
	DWWW_SERVERNAME=localhost
fi

if [ -z "$1" ]
then
	lynx "http://$DWWW_SERVERNAME/dwww/"
else
	lynx "http://$DWWW_SERVERNAME/cgi-bin/dwww?search=$1"
fi
