#!/bin/sh
#
# Usually, this is called as: eval `bootstrap cheshire.conf` to set up the 
# environment for running nocat firewall scripts
#
if [ -z "$1" ]; then
  echo "Usage: $0 [config file]"
  exit 1
fi

if [ ! -r $1 ]; then
  echo "$1 unreadable!"
  exit 2
fi

grep '^[A-Z]' $1|tr -s ' 	'|sed -e 's/[ 	]/="/1' -e 's/$/"/' -e 's/^/export /'

#
# Ende
#