#!/bin/sh

d=`pwd`
home_fpc="$HOME/fpc"

if [ ! -d "$home_fpc" ]; then
   mkdir -p "$home_fpc"
fi
cd $home_fpc

if [ ! -e "$home_fpc"/fp.cfg ]; then
    cp  /etc/fp.cfg "$home_fpc"/fp.cfg
fi

/usr/bin/fp-bin $*
cd $d
