#!/bin/ksh
#
# ident "@(#)browserprefs.ksh	1.11 01/05/15 SMI"
#
# Copyright (c) 2001 Sun Microsystems, Inc.
# All rights reserved.
#


. /var/opt/SUNWut/kiosk/kiosk.conf

BP_TMPFILE=/var/opt/SUNWut/kiosk/preferences

if [ -f $BP_TMPFILE ]
then
        rm $BP_TMPFILE
fi

touch $BP_TMPFILE
chmod 755 $BP_TMPFILE

if [ ! -z $homepage ]; then
        echo "HOMEPAGE="$homepage  >> $BP_TMPFILE
fi
if [ ! -z $browserLocation ]; then
        echo "BROWSERLOCATION="$browserLocation >> $BP_TMPFILE
fi
if [ ! -z $browserSize ]; then
        echo "BROWSERSIZE="$browserSize >> $BP_TMPFILE
fi
if [ ! -z $proxytype ]; then
        echo "PROXYTYPE="$proxytype    >> $BP_TMPFILE
fi
if [ ! -z $httpcache ]; then
        echo "HTTPPROXY="$httpcache    >> $BP_TMPFILE
fi
if [ ! -z $httpcacheport ]; then
        echo "HTTPPROXYPORT="$httpcacheport    >> $BP_TMPFILE
fi
if [ ! -z $sslcache ]; then
        echo "SSLPROXY="$sslcache >> $BP_TMPFILE
fi
if [ ! -z $sslcacheport ]; then
        echo "SSLPROXYPORT="$sslcacheport >> $BP_TMPFILE
fi
if [ ! -z $ftpcache ]; then
        echo "FTPPROXY="$ftpcache >> $BP_TMPFILE
fi
if [ ! -z $ftpcacheport ]; then
        echo "FTPPROXYPORT="$ftpcacheport >> $BP_TMPFILE
fi
if [ ! -z $waiscache ]; then
        echo "WAISPROXY="$waiscache >> $BP_TMPFILE
fi
if [ ! -z $waiscacheport ]; then
        echo "WAISPROXYPORT="$waiscacheport >> $BP_TMPFILE
fi
if [ ! -z $gophercache ]; then
        echo "GOPHERPROXY="$gophercache >> $BP_TMPFILE
fi
if [ ! -z $gophercacheport ]; then
        echo "GOPHERPROXYPORT="$gophercacheport >> $BP_TMPFILE
fi
