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