#!/bin/bash
# vim: set et ts=4 sw=4 ai si:
#
# blobby.sh -- start blobbyvolley and copy the needed configuration data
#               to the user's home
#
# (C) 2008 Patrick Kirsch <pkirsch@suse.de>
#

# check for existence of .blobby directory in HOME
if [ -e "$HOME/.blobby/" ] ; then 
    echo "Blobby configuration exists"
    echo "starting blobby ..."
else
    echo "Blobbybolley is started the first time, there is configuration available"
    echo "copying default configuration from /usr/share/games/blobbyvolley to ~/.blobby/"
    sleep 2
    /bin/mkdir $HOME/.blobby
    /bin/cp -a /usr/share/games/blobbyvolley/data/* $HOME/.blobby
fi

/usr/bin/blobbyvolley
