#!/bin/sh
#Wrapper script for xgridloc to ensure that user configuration is present
xgridlocbin="/usr/libexec/xgridloc-bin"
#check if user configuration is present
if [ ! -e ~/.xgridlocrc ]
then
echo "Creating user configuration file"
cp /usr/share/xgridloc/xgridlocrc ~/.xgridlocrc
fi
#launch xgridloc
echo "Please configure your serial device in the .xgridlocrc file in your users home directory"
$xgridlocbin
